(child: StudioChildProcess)
| 702 | } |
| 703 | |
| 704 | function registerChildTreeShutdown(child: StudioChildProcess): void { |
| 705 | const shutdown = (): void => { |
| 706 | if (child.pid) killProcessTree(child.pid); |
| 707 | }; |
| 708 | process.once("SIGINT", shutdown); |
| 709 | process.once("SIGTERM", shutdown); |
| 710 | } |
| 711 | |
| 712 | function waitForChildClose(child: StudioChildProcess): Promise<void> { |
| 713 | return new Promise<void>((resolveClose) => { |
no test coverage detected