MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / isAlive

Function isAlive

src/devTools/killProcess.ts:24–31  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

22};
23
24let isAlive = (pid: number) => {
25 try {
26 process.kill(pid, 0);
27 return true;
28 } catch (error: any) {
29 return false;
30 }
31};
32
33export const killtree = async (pid: number) => {
34 let descendants = await pidtree(pid);

Callers 1

killFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected