MCPcopy Index your code
hub / github.com/Waishnav/devspace / shutdown

Function shutdown

scripts/dev-server.mjs:101–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101function shutdown() {
102 shuttingDown = true;
103 clearTimeout(restartTimer);
104 if (!child) return process.exit(0);
105
106 child.once("exit", () => process.exit(0));
107 child.kill("SIGTERM");
108 setTimeout(() => process.exit(1), 3000).unref();
109}
110
111for (const signal of ["SIGINT", "SIGTERM"]) {
112 process.on(signal, shutdown);

Callers

nothing calls this directly

Calls 1

killMethod · 0.65

Tested by

no test coverage detected