MCPcopy Index your code
hub / github.com/nodejs/node / abortChildProcess

Function abortChildProcess

lib/child_process.js:755–765  ·  view source on GitHub ↗
(child, killSignal, reason)

Source from the content-addressed store, hash-verified

753}
754
755function abortChildProcess(child, killSignal, reason) {
756 if (!child)
757 return;
758 try {
759 if (child.kill(killSignal)) {
760 child.emit('error', new AbortError(undefined, { cause: reason }));
761 }
762 } catch (err) {
763 child.emit('error', err);
764 }
765}
766
767/**
768 * Spawns a new process using the given `file`.

Callers 1

onAbortListenerFunction · 0.85

Calls 2

killMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…