I'v got a daemon child process (Linux) spawned from the server via child_process.spawn(...) .
I can kill it with p.kill() command and the child process dies fine. However, when I send USR signals to the child process - let's say p.kill("SIGUSR1") - prior to killing it p.kill("SIGKILL") the child process gets the USR1 signal, but, surprisingly, the subsequent SIGKILL never gets to the child(!?). Also, exit event of the child process is not called as well.
Is there anything I miss about signal handling in node?
Cheers
Have just found it :) It's a bug: https://github.com/joyent/node/issues/1035
Calling process.kill(pid,signal) works multiple times.
Cheers
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.