0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00

fix(ext/node): prevent premature stdin closure

Fixes `npm-run-all` compat.

Fixes https://github.com/denoland/deno/issues/24425
This commit is contained in:
Divy Srivastava 2024-08-21 09:30:46 +05:30
parent 5168700be6
commit 1aea912e7e

View file

@ -469,7 +469,7 @@ export class ChildProcess extends EventEmitter {
}
#closePipes() {
if (this.stdin) {
if (this.stdin && !this.stdin.destroyed && this.stdin !== process.stdin) {
assert(this.stdin);
this.stdin.destroy();
}