(info: DaemonLockInfo)
| 156 | * human readability — operators occasionally `cat` this when debugging. |
| 157 | */ |
| 158 | export function encodeLockInfo(info: DaemonLockInfo): string { |
| 159 | return JSON.stringify(info, null, 2) + '\n'; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so |
no outgoing calls
no test coverage detected