(output: ChildOutput)
| 150 | }; |
| 151 | |
| 152 | const killChild = async (output: ChildOutput): Promise<ChildCloseResult> => { |
| 153 | if (output.child.exitCode === null && output.child.signalCode === null) { |
| 154 | output.child.kill("SIGKILL"); |
| 155 | } |
| 156 | return waitForChildClose(output, 5_000); |
| 157 | }; |
| 158 | |
| 159 | const disposeChildOutput = (output: ChildOutput): void => { |
| 160 | output.child.stdout.destroy(); |
no test coverage detected