Close child process stdin on SIGCHLD

pull/22966/head
Ryan Dahl 2010-04-08 15:20:13 -07:00
parent 499c615c9e
commit b8bb6e9007
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ function ChildProcess () {
internal.onexit = function (code) {
gotCHLD = true;
exitCode = code;
stdin.close();
if (!stdout.readable && !stderr.readable) {
self.emit('exit', exitCode);
}