MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / isAlive

Function isAlive

src/cli/bot-process.ts:24–26  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

22
23/** Is a pid alive? (kill 0 probes without signalling.) */
24export function isAlive(pid: number): boolean {
25 try { process.kill(pid, 0); return true; } catch (e: any) { return e?.code === 'EPERM'; }
26}
27
28export interface BotStatus { running: boolean; pid?: number }
29

Callers 1

botStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected