diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index b07a38d6f6f5ac..e8a6e64215abda 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -300,9 +300,7 @@ function flushStdio(subprocess) { // TODO(addaleax): This doesn't necessarily account for all the ways in // which data can be read from a stream, e.g. being consumed on the // native layer directly as a StreamBase. - if (!stream || !stream.readable || - stream._readableState.readableListening || - stream[kIsUsedAsStdio]) { + if (!stream || !stream.readable || stream[kIsUsedAsStdio]) { continue; } stream.resume();