Hi, I am currently migrating our application from node 0.8 to 0.10 and would like to ask around the changes in how process behave in 0.10. Let's say I am spawning a process from my node application. I will have to attach two listeners (error and exit) to handle this child process lifecycle. Now, how would I be able to find out if a process has finished? I see that the error event can be triggered if the spawn failed, so this would mean my exit handler is never called. On the other hand, I might also get an error event if sending a message failed or killing failed, so I would still get an exit event. Third, I could add a listener for 'close', but I am not sure under which condition that is fired (e.g. also in error case?).
This makes it very hard to really handle the case where the process has finished, either through an error condition or normally. Thanks for clarification, Ben -- -- 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 --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
