()
| 92 | // flaky – another process might end up being started right after the |
| 93 | // workers finished and receive the same PID. |
| 94 | const pollWorkers = () => { |
| 95 | // When primary is dead all workers should be dead too |
| 96 | if (workers.some((pid) => common.isAlive(pid))) { |
| 97 | setTimeout(pollWorkers, 50); |
| 98 | } |
| 99 | }; |
| 100 | |
| 101 | // Loop indefinitely until worker exit |
| 102 | pollWorkers(); |
no test coverage detected
searching dependent graphs…