(info: DaemonLockInfo)
| 106 | * human readability — operators occasionally `cat` this when debugging. |
| 107 | */ |
| 108 | export function encodeLockInfo(info: DaemonLockInfo): string { |
| 109 | return JSON.stringify(info, null, 2) + '\n'; |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so |
no outgoing calls
no test coverage detected