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.
This commit is contained in:
Maciej Małecki 2013-01-04 05:53:55 +01:00 committed by isaacs
parent 8adebb92bc
commit a5d4e74891

View File

@ -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;