From b8bb6e90074452b41c45a31b03d261484cb841d4 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 8 Apr 2010 15:20:13 -0700 Subject: [PATCH] Close child process stdin on SIGCHLD --- lib/child_process.js | 1 + 1 file changed, 1 insertion(+) 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); }