diff options
Diffstat (limited to 'ext/node/polyfills/internal/child_process.ts')
-rw-r--r-- | ext/node/polyfills/internal/child_process.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts index 0e93e22d3..39c7633e4 100644 --- a/ext/node/polyfills/internal/child_process.ts +++ b/ext/node/polyfills/internal/child_process.ts @@ -296,6 +296,10 @@ export class ChildProcess extends EventEmitter { throw err; } } + + /* Cancel any pending IPC I/O */ + this.disconnect?.(); + this.killed = true; this.signalCode = denoSignal; return this.killed; |