MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stop

Function stop

apps/desktop/src/sidecar/server.ts:146–154  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

144console.log(`EXECUTOR_READY:${server.port}`);
145
146const stop = async (code: number) => {
147 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: shutdown path must terminate even when stop() throws
148 try {
149 await server.stop();
150 if (supervised) removeOwnManifest();
151 } finally {
152 process.exit(code);
153 }
154};
155
156process.on("SIGTERM", () => void stop(0));
157process.on("SIGINT", () => void stop(0));

Callers 1

server.tsFile · 0.70

Calls 1

removeOwnManifestFunction · 0.85

Tested by

no test coverage detected