(child: ChildProcess, detached: boolean | undefined)
| 724 | } |
| 725 | |
| 726 | function killProcessTree(child: ChildProcess, detached: boolean | undefined): void { |
| 727 | if (detached && child.pid && process.platform !== 'win32') { |
| 728 | try { |
| 729 | process.kill(-child.pid, 'SIGKILL'); |
| 730 | return; |
| 731 | } catch {} |
| 732 | } |
| 733 | child.kill('SIGKILL'); |
| 734 | } |
| 735 | |
| 736 | async function writeChildStdin( |
| 737 | child: ChildProcess, |
no test coverage detected