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

Function readPidFile

src/ops/lifecycle.js:508–517  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

506}
507
508function readPidFile(file) {
509 try {
510 if (!file || !fs.existsSync(file)) return null;
511 var raw = fs.readFileSync(file, 'utf8').trim();
512 var pid = parseInt(raw, 10);
513 return Number.isFinite(pid) && pid > 0 ? pid : null;
514 } catch (_) {
515 return null;
516 }
517}
518
519function getOwnedLoopPids(discoveredPids) {
520 var candidates = new Set();

Callers 1

getOwnedLoopPidsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected