(createdSymlink: boolean, symlinkPath: string)
| 691 | } |
| 692 | |
| 693 | function removeSymlinkOnExit(createdSymlink: boolean, symlinkPath: string): void { |
| 694 | if (!createdSymlink) return; |
| 695 | process.on("exit", () => { |
| 696 | try { |
| 697 | if (existsSync(symlinkPath)) unlinkSync(symlinkPath); |
| 698 | } catch { |
| 699 | /* ignore */ |
| 700 | } |
| 701 | }); |
| 702 | } |
| 703 | |
| 704 | function registerChildTreeShutdown(child: StudioChildProcess): void { |
| 705 | const shutdown = (): void => { |
no test coverage detected