MCPcopy Index your code
hub / github.com/callstack/agent-device / killProcessTree

Function killProcessTree

src/utils/exec.ts:726–734  ·  view source on GitHub ↗
(child: ChildProcess, detached: boolean | undefined)

Source from the content-addressed store, hash-verified

724}
725
726function killProcessTree(child: ChildProcess, detached: boolean | undefined): void {
727 if (detached && child.pid && process.platform !== 'win32') {
728 try {
729 process.kill(-child.pid, 'SIGKILL');
730 return;
731 } catch {}
732 }
733 child.kill('SIGKILL');
734}
735
736async function writeChildStdin(
737 child: ChildProcess,

Callers 2

runSpawnedCommandFunction · 0.85
onAbortFunction · 0.85

Calls 1

killMethod · 0.45

Tested by

no test coverage detected