diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index 67687e1a07a460..8580ff64d15288 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -297,9 +297,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();