MCPcopy
hub / github.com/RedPlanetHQ/core / isProcessRunningByPid

Function isProcessRunningByPid

packages/cli/src/utils/coding-sessions.ts:74–81  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

72}
73
74export function isProcessRunningByPid(pid: number): boolean {
75 try {
76 process.kill(pid, 0);
77 return true;
78 } catch {
79 return false;
80 }
81}

Callers

nothing calls this directly

Calls 1

killMethod · 0.80

Tested by

no test coverage detected