MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / killTree

Function killTree

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

Source from the content-addressed store, hash-verified

182}
183
184function killTree(...procs: ChildProcessWithoutNullStreams[]): void {
185 for (const p of procs) {
186 if (!p.killed) { try { p.kill('SIGKILL'); } catch { /* gone */ } }
187 }
188}
189
190async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> {
191 return waitFor(() => !isAlive(pid), timeoutMs).then(() => true).catch(() => false);

Callers 1

mcp-daemon.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected