(pidPath: string | undefined)
| 87 | } |
| 88 | |
| 89 | export function clearPidFile(pidPath: string | undefined): void { |
| 90 | if (!pidPath || !fs.existsSync(pidPath)) return; |
| 91 | try { |
| 92 | fs.unlinkSync(pidPath); |
| 93 | } catch { |
| 94 | // best-effort cleanup |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | export function cleanupStaleAppLogProcesses(sessionsDir: string): void { |
| 99 | if (!fs.existsSync(sessionsDir)) return; |
no outgoing calls
no test coverage detected