(child: ReturnType<typeof spawn>)
| 32 | } |
| 33 | |
| 34 | function waitForExit(child: ReturnType<typeof spawn>): Promise<void> { |
| 35 | return child.exitCode !== null |
| 36 | ? Promise.resolve() |
| 37 | : new Promise((resolve) => child.once('exit', () => resolve())); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * A live process standing in for a daemon. Its command line reads like a |
no test coverage detected