MCPcopy Create free account
hub / github.com/anus-dev/ANUS / stopProxy

Function stopProxy

packages/cli/src/utils/sandbox.ts:305–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 });
304 // install handlers to stop proxy on exit/signal
305 const stopProxy = () => {
306 console.log('stopping proxy ...');
307 if (proxyProcess?.pid) {
308 process.kill(-proxyProcess.pid, 'SIGTERM');
309 }
310 };
311 process.on('exit', stopProxy);
312 process.on('SIGINT', stopProxy);
313 process.on('SIGTERM', stopProxy);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected