MCPcopy
hub / github.com/Doorman11991/smallcode / stop

Method stop

src/tools/shell_session.js:268–275  ·  view source on GitHub ↗

* Stop the shell process. Idempotent.

()

Source from the content-addressed store, hash-verified

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

Callers 3

resetMethod · 0.95
resetShellFunction · 0.45
cleanupFunction · 0.45

Calls 2

_failPendingMethod · 0.95
killMethod · 0.80

Tested by

no test coverage detected