mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
child_process: remove unnecessary use of inner state
PR-URL: https://github.com/nodejs/node/pull/29358 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
committed by
Rich Trott
parent
4de31d517f
commit
f9c16b87ef
@@ -301,9 +301,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();
|
||||
|
||||
Reference in New Issue
Block a user