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

Function isAlive

__tests__/mcp-daemon.test.ts:143–145  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

141}
142
143function isAlive(pid: number): boolean {
144 try { process.kill(pid, 0); return true; } catch { return false; }
145}
146
147function readLockPid(root: string): number | null {
148 try {

Callers 4

waitProcessExitFunction · 0.70
mcp-daemon.test.tsFile · 0.70
peerIsDeadFunction · 0.50
supervisionLostReasonFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected