MCPcopy Create free account
hub / github.com/callstack/agent-device / releaseDaemonLock

Function releaseDaemonLock

src/daemon/server/server-lifecycle.ts:104–110  ·  view source on GitHub ↗
(lockPath: string)

Source from the content-addressed store, hash-verified

102}
103
104export function releaseDaemonLock(lockPath: string): void {
105 const existing = readLockInfo(lockPath);
106 if (existing && existing.pid !== process.pid) return;
107 try {
108 if (fs.existsSync(lockPath)) fs.unlinkSync(lockPath);
109 } catch {}
110}
111
112export function parseIntegerEnv(raw: string | undefined): number | undefined {
113 if (raw === undefined) return undefined;

Callers 3

startDaemonRuntimeFunction · 0.90
shutdownFunction · 0.90

Calls 1

readLockInfoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…