child_process: don't `resume()` created socket
authorMaciej Małecki <me@mmalecki.com>
Fri, 4 Jan 2013 04:53:55 +0000 (05:53 +0100)
committerisaacs <i@izs.me>
Mon, 7 Jan 2013 16:36:49 +0000 (08:36 -0800)
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.

lib/child_process.js

index 7781da8..1fecbc7 100644 (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;