Browse files

child_process: do not wait for inherited streams

* fixes #3493
  • Loading branch information...
1 parent 8708bb0 commit ff34563db41ab9dd83d00c5c6330c7f11ffa847e @indutny committed Jun 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/child_process.js
View
2 lib/child_process.js
@@ -799,7 +799,7 @@ ChildProcess.prototype.spawn = function(options) {
// (which is the only one writable pipe)
stdio.socket = createSocket(stdio.handle, i > 0);
- if (i > 0) {
+ if (i > 0 && stdio.type === 'pipe') {
self._closesNeeded++;
stdio.socket.on('close', function() {
maybeClose(self);

0 comments on commit ff34563

Please sign in to comment.