diff --git a/lib/child_process.js b/lib/child_process.js index b0f8316858..4ed5a544a0 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -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); }