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

Function restart

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

Source from the content-addressed store, hash-verified

41}
42
43function restart() {
44 if (shuttingDown) return;
45 clearTimeout(restartTimer);
46
47 if (!child) {
48 start();
49 return;
50 }
51
52 stoppingForRestart = true;
53 child.once("exit", () => {
54 if (!shuttingDown) start();
55 });
56 child.kill("SIGTERM");
57
58 setTimeout(() => {
59 if (child && stoppingForRestart) child.kill("SIGKILL");
60 }, 3000).unref();
61}
62
63function watchDirectory(root) {
64 const watchers = [];

Callers

nothing calls this directly

Calls 2

startFunction · 0.70
killMethod · 0.65

Tested by

no test coverage detected