(pid: number, marker: string)
| 182 | * to skip the signal than to risk killing the wrong process. |
| 183 | */ |
| 184 | export function verifyIdentity(pid: number, marker: string): boolean { |
| 185 | if (!marker) return false; |
| 186 | return readCmdline(pid).includes(marker); |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Acquire an exclusive lock on `lockPath`. Returns a release function, or |
no test coverage detected