projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8adebb9
)
child_process: don't `resume()` created socket
author
Maciej Małecki
<me@mmalecki.com>
Fri, 4 Jan 2013 04:53:55 +0000
(
05:53
+0100)
committer
isaacs
<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
patch
|
blob
|
history
diff --git
a/lib/child_process.js
b/lib/child_process.js
index
7781da8
..
1fecbc7
100644
(file)
--- 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;