MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / killTree

Function killTree

__tests__/mcp-daemon.test.ts:158–162  ·  view source on GitHub ↗
(...procs: ChildProcessWithoutNullStreams[])

Source from the content-addressed store, hash-verified

156}
157
158function killTree(...procs: ChildProcessWithoutNullStreams[]): void {
159 for (const p of procs) {
160 if (!p.killed) { try { p.kill('SIGKILL'); } catch { /* gone */ } }
161 }
162}
163
164async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> {
165 return waitFor(() => !isAlive(pid), timeoutMs).then(() => true).catch(() => false);

Callers 1

mcp-daemon.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected