mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fix child_process to use end() instead of close() in the stdin stream.
This commit is contained in:
1 parent
06b9c8bf1f
commit
ff56d6364e
1 file changed
+1
-1
@@ -56,7 +56,7 @@ function ChildProcess () {
|
||||
internal.onexit = function (code) {
|
||||
gotCHLD = true;
|
||||
exitCode = code;
|
||||
stdin.close();
|
||||
stdin.end();
|
||||
if (!stdout.readable && !stderr.readable) {
|
||||
self.emit('exit', exitCode);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user