Browse Source

Close child process stdin on SIGCHLD

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
b8bb6e9007
  1. 1
      lib/child_process.js

1
lib/child_process.js

@ -56,6 +56,7 @@ function ChildProcess () {
internal.onexit = function (code) { internal.onexit = function (code) {
gotCHLD = true; gotCHLD = true;
exitCode = code; exitCode = code;
stdin.close();
if (!stdout.readable && !stderr.readable) { if (!stdout.readable && !stderr.readable) {
self.emit('exit', exitCode); self.emit('exit', exitCode);
} }

Loading…
Cancel
Save