Fix child_process to use end() instead of close() in the stdin stream.
authorTim Caswell <tim@creationix.com>
Fri, 9 Apr 2010 16:56:22 +0000 (11:56 -0500)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 9 Apr 2010 17:01:47 +0000 (10:01 -0700)
lib/child_process.js

index b0f8316..4ed5a54 100644 (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);
     }