mirror of https://github.com/nodejs/node.git
Close child process stdin on SIGCHLD
parent
499c615c9e
commit
b8bb6e9007
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue