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

Function getCmdLine

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

Source from the content-addressed store, hash-verified

345}
346
347function getCmdLine(pid) {
348 try {
349 const safePid = parseInt(pid, 10);
350 if (isNaN(safePid)) return null;
351 var proc = listProcesses().find(function(p) { return p.pid === safePid; });
352 return proc ? (proc.args || '').trim() : null;
353 } catch (e) {
354 return null;
355 }
356}
357
358function getPidCwd(pid) {
359 const safePid = parseInt(pid, 10);

Callers 2

getOwnedLoopPidsFunction · 0.85
statusFunction · 0.85

Calls 1

listProcessesFunction · 0.85

Tested by

no test coverage detected