We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e637b commit 0b342e8Copy full SHA for 0b342e8
lib/internal/child_process.js
@@ -531,10 +531,9 @@ ChildProcess.prototype.kill = function(sig) {
531
532
ChildProcess.prototype[SymbolAsyncDispose] = async function() {
533
if (!this.closed) {
534
- const promise = EventEmitter.once(this, 'close');
535
const ret = this.kill(this[kKillSignal]);
536
assert(ret, 'unexpected kill failure');
537
- await promise;
+ await EventEmitter.once(this, 'close');
538
this.emit('error', new AbortError());
539
}
540
};
0 commit comments