MCPcopy
hub / github.com/colbymchenry/codegraph / isProcessAlive

Method isProcessAlive

src/utils.ts:325–332  ·  view source on GitHub ↗

* Check if a process is still running

(pid: number)

Source from the content-addressed store, hash-verified

323 * Check if a process is still running
324 */
325 private isProcessAlive(pid: number): boolean {
326 try {
327 process.kill(pid, 0);
328 return true;
329 } catch {
330 return false;
331 }
332 }
333}
334
335/**

Callers 1

acquireMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected