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

Function waitProcessExit

__tests__/daemon-older-version.test.ts:385–387  ·  view source on GitHub ↗
(pid: number, timeoutMs: number)

Source from the content-addressed store, hash-verified

383}
384
385async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> {
386 return waitFor(() => !isAlive(pid), timeoutMs, `pid ${pid} to exit`).then(() => true, () => false);
387}
388
389function readJson(file: string): any | null {
390 try { return JSON.parse(fs.readFileSync(file, 'utf8')); } catch { return null; }

Callers 1

Calls 2

waitForFunction · 0.70
isAliveFunction · 0.70

Tested by

no test coverage detected