mirror of
https://github.com/denoland/deno.git
synced 2025-02-07 23:06:50 -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:
parent
5168700be6
commit
1aea912e7e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue