(pid: number)
| 2 | import { join } from "node:path"; |
| 3 | |
| 4 | const isAlive = (pid: number): boolean => { |
| 5 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: process liveness probing reports false for an already-reaped test daemon |
| 6 | try { |
| 7 | process.kill(process.platform === "win32" ? pid : -pid, 0); |
| 8 | return true; |
| 9 | } catch { |
| 10 | return false; |
| 11 | } |
| 12 | }; |
| 13 | |
| 14 | const signal = (pid: number, name: NodeJS.Signals): void => { |
| 15 | // Auto-started daemons are detached process-group leaders. Signal the whole |
no test coverage detected