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

Function waitProcessExit

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

Source from the content-addressed store, hash-verified

188}
189
190async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> {
191 return waitFor(() => !isAlive(pid), timeoutMs).then(() => true).catch(() => false);
192}
193
194async function staleIndex(root: string): Promise<Buffer> {
195 fs.writeFileSync(path.join(root, 'app.ts'), 'export function originalSymbol() {}\n');

Callers 1

mcp-daemon.test.tsFile · 0.70

Calls 2

waitForFunction · 0.70
isAliveFunction · 0.70

Tested by

no test coverage detected