(lockPath: string)
| 64 | } |
| 65 | |
| 66 | function dropActiveLockRef(lockPath: string): boolean { |
| 67 | const current = activeLockRefs.get(lockPath); |
| 68 | if (current === undefined || current <= 1) { |
| 69 | activeLockRefs.delete(lockPath); |
| 70 | return true; |
| 71 | } |
| 72 | activeLockRefs.set(lockPath, current - 1); |
| 73 | return false; |
| 74 | } |
| 75 | |
| 76 | function parseLock(lockPath: string, logPrefix: string): ProcessLockMetadata | null { |
| 77 | try { |
no test coverage detected