(...procs: ChildProcessWithoutNullStreams[])
| 164 | } |
| 165 | |
| 166 | function killTree(...procs: ChildProcessWithoutNullStreams[]): void { |
| 167 | for (const p of procs) { |
| 168 | if (!p.killed) { try { p.kill('SIGKILL'); } catch { /* gone */ } } |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | async function waitProcessExit(pid: number, timeoutMs: number): Promise<boolean> { |
| 173 | return waitFor(() => !isAlive(pid), timeoutMs).then(() => true).catch(() => false); |
no outgoing calls
no test coverage detected