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

Method isProcessAlive

src/utils.ts:659–667  ·  view source on GitHub ↗

* Check if a process is still running

(pid: number)

Source from the content-addressed store, hash-verified

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

Callers 1

readHolderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected