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

Function releaseLock

index.js:762–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

760}
761
762function releaseLock() {
763 const lockFile = getLockFilePath();
764 try {
765 if (fs.existsSync(lockFile)) {
766 const payload = _readLockPayload(lockFile);
767 if (payload && payload.pid === process.pid) fs.unlinkSync(lockFile);
768 }
769 } catch (e) { /* ignore */ }
770}
771
772// Round-7 (§20.7): the daemon-lock acquireLock() only fires for `--loop`
773// mode; CLI subcommands like `evolver fetch` and `evolver sync` run

Callers 3

shutdownFunction · 0.85
mainFunction · 0.85

Calls 2

getLockFilePathFunction · 0.85
_readLockPayloadFunction · 0.85

Tested by

no test coverage detected