From a5d4e74891dd5cf4351704ba554637b584f1840a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Fri, 4 Jan 2013 05:53:55 +0100 Subject: [PATCH] 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. --- lib/child_process.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/child_process.js b/lib/child_process.js index 7781da8ca2..1fecbc7557 100644 --- a/lib/child_process.js +++ b/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;