MCPcopy Index your code
hub / github.com/callstack/agent-device / readProcessLockOwner

Function readProcessLockOwner

src/utils/process-lock.ts:95–101  ·  view source on GitHub ↗
(ownerFilePath: string)

Source from the content-addressed store, hash-verified

93}
94
95function readProcessLockOwner(ownerFilePath: string): ProcessLockOwner | null {
96 try {
97 return JSON.parse(fs.readFileSync(ownerFilePath, 'utf8')) as ProcessLockOwner;
98 } catch {
99 return null;
100 }
101}
102
103function readProcessLockDiagnostics(
104 lockDirPath: string,

Callers 2

clearStaleProcessLockFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected