diff --git a/lib/child_process.js b/lib/child_process.js index db452110d8..b0f8316858 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -56,6 +56,7 @@ function ChildProcess () { internal.onexit = function (code) { gotCHLD = true; exitCode = code; + stdin.close(); if (!stdout.readable && !stderr.readable) { self.emit('exit', exitCode); }