()
| 108 | private exitTimeout: NodeJS.Timeout = null; |
| 109 | private killInProgress = false; |
| 110 | public exit(): void { |
| 111 | if (this.process && !this.killInProgress) { |
| 112 | try { |
| 113 | ServerConsoleLog(`GDBServer(${this.pid}): forcing an exit with kill()`); |
| 114 | this.killInProgress = true; |
| 115 | this.process.kill(); |
| 116 | } |
| 117 | catch (e) { |
| 118 | ServerConsoleLog(`GDBServer(${this.pid}): Trying to force and exit failed ${e}`); |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | private onExit(code, signal) { |
| 124 | ServerConsoleLog(`GDBServer(${this.pid}): exited code=${code} signal=${signal}`); |
no test coverage detected