MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / alive

Function alive

e2e/scripts/cli.ts:61–68  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

59};
60
61const alive = (pid: number): boolean => {
62 try {
63 process.kill(pid, 0);
64 return true;
65 } catch {
66 return false;
67 }
68};
69
70const isInstanceState = (value: unknown): value is InstanceState => {
71 if (!value || typeof value !== "object") return false;

Callers 4

upFunction · 0.85
loadTargetFunction · 0.85
statusFunction · 0.85
downFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected