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

Method isProcessAlive

src/utils.ts:657–665  ·  view source on GitHub ↗

* Check if a process is still running

(pid: number)

Source from the content-addressed store, hash-verified

655 * Check if a process is still running
656 */
657 private isProcessAlive(pid: number): boolean {
658 try {
659 process.kill(pid, 0);
660 return true;
661 } catch (err) {
662 // EPERM: it exists but is not ours to signal (another user's, or elevated on Windows).
663 return (err as NodeJS.ErrnoException).code === 'EPERM';
664 }
665 }
666}
667
668/**

Callers 1

readHolderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected