Fix child_process to use end() instead of close() in the stdin stream.
This commit is contained in:
parent
06b9c8bf1f
commit
ff56d6364e
@ -56,7 +56,7 @@ function ChildProcess () {
|
|||||||
internal.onexit = function (code) {
|
internal.onexit = function (code) {
|
||||||
gotCHLD = true;
|
gotCHLD = true;
|
||||||
exitCode = code;
|
exitCode = code;
|
||||||
stdin.close();
|
stdin.end();
|
||||||
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