diff --git a/lib/child_process.js b/lib/child_process.js index ae569a29ce1..0d73beb5c5d 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -1057,8 +1057,7 @@ util.inherits(ChildProcess, EventEmitter); function flushStdio(subprocess) { if (subprocess.stdio == null) return; subprocess.stdio.forEach(function(stream, fd, stdio) { - if (!stream || !stream.readable || stream._consuming || - stream._readableState.flowing) + if (!stream || !stream.readable || stream._consuming) return; stream.resume(); });