Close child process stdin on SIGCHLD
This commit is contained in:
parent
499c615c9e
commit
b8bb6e9007
@ -56,6 +56,7 @@ function ChildProcess () {
|
|||||||
internal.onexit = function (code) {
|
internal.onexit = function (code) {
|
||||||
gotCHLD = true;
|
gotCHLD = true;
|
||||||
exitCode = code;
|
exitCode = code;
|
||||||
|
stdin.close();
|
||||||
if (!stdout.readable && !stderr.readable) {
|
if (!stdout.readable && !stderr.readable) {
|
||||||
self.emit('exit', exitCode);
|
self.emit('exit', exitCode);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user