* Stop the shell process. Idempotent.
()
| 266 | * Stop the shell process. Idempotent. |
| 267 | */ |
| 268 | stop() { |
| 269 | this._failPending('shell stopped'); |
| 270 | if (this.proc) { |
| 271 | try { this.proc.kill(); } catch {} |
| 272 | this.proc = null; |
| 273 | } |
| 274 | this._dead = true; |
| 275 | } |
| 276 | |
| 277 | // ─── Internal ────────────────────────────────────────────────────────── |
| 278 |
no test coverage detected