MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / winner

Function winner

__tests__/daemon-silent-holder.test.ts:237–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 // Spawned daemons that lost the lock leave on their own, and must be gone
236 // before the pipe, lock and fixture go away. One that won idles out.
237 const winner = (): number => (holder ? process.pid : lockPid() ?? process.pid);
238 await settleLosingCandidates(root, winner, 60_000);
239 const daemon = winner();
240 if (daemon !== process.pid) {

Callers 1

Calls 1

lockPidFunction · 0.70

Tested by

no test coverage detected