Is it possible to create child processes in node.js which do not exit when their parents do?
I'm running node v0.6.19.
Yes, use child_process.spawn
and pass the detached
option, then call child.unref()
.
Make sure you read the notes: http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With