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

Function isProcessAliveLocal

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

Source from the content-addressed store, hash-verified

856}
857
858function isProcessAliveLocal(pid: number): boolean {
859 try {
860 process.kill(pid, 0);
861 return true;
862 } catch (err: unknown) {
863 const e = err as NodeJS.ErrnoException;
864 if (e.code === 'EPERM') return true;
865 return false;
866 }
867}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected