Browse Source

child_process: don't `resume()` created socket

Calling `resume()` on a stream switches it to the old mode which causes
piping stdio from a child process to fail.

Fixes joyent/node#4510.
v0.9.6-release
Maciej Małecki 12 years ago
committed by isaacs
parent
commit
a5d4e74891
  1. 1
      lib/child_process.js

1
lib/child_process.js

@ -65,7 +65,6 @@ function createSocket(pipe, readable) {
if (readable) {
s.writable = false;
s.readable = true;
s.resume();
} else {
s.writable = true;
s.readable = false;

Loading…
Cancel
Save