Fix child_process to use end() instead of close() in the stdin stream.

pull/22966/head
Tim Caswell 2010-04-09 11:56:22 -05:00 committed by Ryan Dahl
parent 06b9c8bf1f
commit ff56d6364e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}