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

Function isProcessAliveLocal

src/mcp/proxy.ts:802–811  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

800}
801
802function isProcessAliveLocal(pid: number): boolean {
803 try {
804 process.kill(pid, 0);
805 return true;
806 } catch (err: unknown) {
807 const e = err as NodeJS.ErrnoException;
808 if (e.code === 'EPERM') return true;
809 return false;
810 }
811}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected