-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zombie process either by process.kill or pty.destroy #58
Comments
I think the problem is chjj/tty.js#111, basically you need to signal(SIGCHLD, SIG_INT), though I have no idea how to do that in node.js, process.on seems to require a function as the second parameter. the following code works, however it seems to be a bit overkill
where waitpid is https://www.npmjs.org/package/waitpid |
Yes, it's most likely due to the non-handling of SIGCHLD (which is what a zombie is: a child process whos exit never got read by waitpid after a sigchld). Adding our own SIGCHLD handler may conflict with the libuv SIGCHLD handler. It's still in the works. I may just merge it to master and use it for a while to see if there are any major problems. SIGCHLD discussion: #37 |
Any update on this ? |
+1 |
👍 :) |
This is the same problem as seen in #8 (which is closed).
The following spawns a bash shell every 3 seconds, and destroys each one after 500ms. It leaves behind a bunch of zombie processes.
The text was updated successfully, but these errors were encountered: