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

Method isProcessAlive

src/utils.ts:633–641  ·  view source on GitHub ↗

* Check if a process is still running

(pid: number)

Source from the content-addressed store, hash-verified

631 * Check if a process is still running
632 */
633 private isProcessAlive(pid: number): boolean {
634 try {
635 process.kill(pid, 0);
636 return true;
637 } catch (err) {
638 // EPERM: it exists but is not ours to signal (another user's, or elevated on Windows).
639 return (err as NodeJS.ErrnoException).code === 'EPERM';
640 }
641 }
642}
643
644/**

Callers 1

readHolderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected