MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / cleanup

Function cleanup

src/tools/shell_session.js:337–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335if (!global.__SMALLCODE_SHELL_EXIT_REGISTERED__) {
336 global.__SMALLCODE_SHELL_EXIT_REGISTERED__ = true;
337 const cleanup = () => { if (_instance) try { _instance.stop(); } catch {} };
338 process.on('exit', cleanup);
339 process.on('SIGINT', cleanup);
340 process.on('SIGTERM', cleanup);

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected