MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isProcessAlive

Function isProcessAlive

valdi/vscode_debugger/src/targets/node/program.ts:171–179  ·  view source on GitHub ↗
(processId: number)

Source from the content-addressed store, hash-verified

169}
170
171function isProcessAlive(processId: number) {
172 try {
173 // kill with signal=0 just test for whether the proc is alive. It throws if not.
174 process.kill(processId, 0);
175 return true;
176 } catch {
177 return false;
178 }
179}

Callers 1

startPollLoopMethod · 0.70

Calls 1

killMethod · 0.65

Tested by

no test coverage detected