From ff56d6364eb09079b1ab6e9ef32d66c2cb4c0bfd Mon Sep 17 00:00:00 2001 From: Tim Caswell Date: Fri, 9 Apr 2010 11:56:22 -0500 Subject: [PATCH] Fix child_process to use end() instead of close() in the stdin stream. --- lib/child_process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }