MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / shutdown

Function shutdown

scripts/dev-server.cjs:280–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 });
279
280 const shutdown = () => {
281 if (shuttingDown) return;
282 shuttingDown = true;
283 if (processKeepAlive) {
284 clearInterval(processKeepAlive);
285 processKeepAlive = null;
286 }
287 server.close(() => {
288 child.kill('SIGTERM');
289 });
290 };
291
292 process.on('SIGINT', shutdown);
293 process.on('SIGTERM', shutdown);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected