I'd like to create fork (via child_process.fork) and make both master and
child exit after all tasks in master process are done.
When I do:
var child = child_process.fork("foo.js");
Process just hangs. I can of course exit it manually via `process.exit`,
but it's a generic module, and I don't have information when it's ok to do
so as there might be some other asynchronous tasks I'm not aware of.
Is there any way to be informed that all event loops for current process
have finished it's work? Something like process.lastTick, which would emit
callback if there's no other event loops in a queue ?
Thanks
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en