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

Function waitProcessExit

__tests__/mcp-daemon.test.ts:164–166  ·  view source on GitHub ↗
(pid: number, timeoutMs: number)

Source from the content-addressed store, hash-verified

162}
163
164async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> {
165 return waitFor(() => !isAlive(pid), timeoutMs).then(() => true).catch(() => false);
166}
167
168describe('Shared MCP daemon (issue #411)', () => {
169 let tempDir: string; // the (possibly symlinked) path processes are spawned with

Callers 1

mcp-daemon.test.tsFile · 0.85

Calls 2

waitForFunction · 0.70
isAliveFunction · 0.70

Tested by

no test coverage detected