When using the detached option to start a long-running process, the process will not stay running in the background unless it is provided with a stdio configuration that is not connected to the parent. If the parent's stdio is inherited, the child will remain attached to the controlling terminal.
The process will exit if no other callbacks are due. This is one way to do it. On Wednesday, June 20, 2012 3:56:57 PM UTC-4, Philip Thrasher wrote: > > Is there a way to check if there are any registered callbacks still > waiting from within a worker process? For instance, I have an application > that spawns a number of workers, each of which can make async calls, and > even generate more work (handing work requests back to master) for the > other workers. How can I determine when my cluster is completely finished? > Is there a way to check and see if there are any http requests > yet-unfulfilled, or any setTimeouts not yet fulfilled? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en