Politely ask the child process to exit (if it is running).
()
| 153 | |
| 154 | /** Politely ask the child process to exit (if it is running). */ |
| 155 | public async kill(): Promise<void> { |
| 156 | if (this.process) { |
| 157 | this.setState(ProcessState.KILLING); |
| 158 | await this.treeKill(this.process.pid); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | /** Restart the managed child process (by killing the current, and spawning a new). */ |
| 163 | public async restart(): Promise<void> { |
no test coverage detected