MCPcopy Index your code
hub / github.com/AutoForgeAI/autoforge / isProcessAlive

Function isProcessAlive

lib/cli.js:440–447  ·  view source on GitHub ↗

Check whether a process with the given PID is still running.

(pid)

Source from the content-addressed store, hash-verified

438
439/** Check whether a process with the given PID is still running. */
440function isProcessAlive(pid) {
441 try {
442 process.kill(pid, 0); // signal 0 = existence check
443 return true;
444 } catch {
445 return false;
446 }
447}
448
449/** Write the PID file. */
450function writePid(pid) {

Callers 1

startServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected