MCPcopy Create free account
hub / github.com/EvoMap/evolver / isPidRunning

Function isPidRunning

src/ops/lifecycle.js:127–133  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

125}
126
127function isPidRunning(pid) {
128 if (_processTableForTest) {
129 var spRun = parseInt(pid, 10);
130 return _processTableForTest.some(function (p) { return p.pid === spRun; });
131 }
132 try { process.kill(pid, 0); return true; } catch (e) { return false; }
133}
134
135function boolEnv(value) {
136 var raw = String(value || '').trim().toLowerCase();

Callers 2

checkProxyHealthFunction · 0.85
getOwnedLoopPidsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected