mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
8adebb92bc
commit
a5d4e74891
1 file changed
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user