Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Caswell <tim@creationix.com>2010-04-09 20:56:22 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-04-09 21:01:47 +0400
commitff56d6364eb09079b1ab6e9ef32d66c2cb4c0bfd (patch)
tree0528b9c79cdfeff04fb4107ba8ca5effbe13563e /lib/child_process.js
parent06b9c8bf1f75c20433413a6aececa26326641a3f (diff)
Fix child_process to use end() instead of close() in the stdin stream.
Diffstat (limited to 'lib/child_process.js')
-rw-r--r--lib/child_process.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/child_process.js b/lib/child_process.js
index b0f8316858a..4ed5a544a00 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);
}