On Thu, Mar 1, 2012 at 16:32, Rafael Brizola <[email protected]> wrote:
> My problem is: if I kill the nodejs process, my application (child
> process) dies too. I figure out that this is the normal behaviour, but
> there is a way to keep my child process running independently if the
> parent process is running or not?

It depends on how you kill the parent process. Pressing Ctrl-C, for
instance, will send the SIGINT to both the parent and the child. What
you'd do in that particular case is register a process.on('SIGINT')
listener that calls process.exit().

-- 
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

Reply via email to