()
| 54 | } |
| 55 | |
| 56 | function onExit() { |
| 57 | if (activeChild) { |
| 58 | try { |
| 59 | if (activeChild.exitCode !== null || activeChild.signalCode !== null) |
| 60 | return; |
| 61 | |
| 62 | if (isWindows) { |
| 63 | execSync(`taskkill /pid ${activeChild.pid} /T /F`, { stdio: 'ignore' }); |
| 64 | } else { |
| 65 | process.kill(-activeChild.pid, 'SIGKILL'); |
| 66 | } |
| 67 | } finally { |
| 68 | activeChild = undefined; |
| 69 | } |
| 70 | } |
| 71 | } |
no test coverage detected
searching dependent graphs…