MCPcopy Create free account
hub / github.com/agent-tower/core / isAlive

Function isAlive

packages/server/src/utils/process-launch.test.ts:16–23  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

14 getNodeRuntimeCommand,
15 normalizeCommandLookupOutput,
16} from './process-launch.js'
17
18function isAlive(pid: number): boolean {
19 try {
20 process.kill(pid, 0)
21 return true
22 } catch {
23 return false
24 }
25}
26

Callers 1

Calls 1

killMethod · 0.65

Tested by

no test coverage detected