MCPcopy Index your code
hub / github.com/nodejs/node / stop

Function stop

lib/internal/main/watch_mode.js:161–168  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

159}
160
161async function stop(child) {
162 // Without this line, the child process is still able to receive IPC, but is unable to send additional messages
163 watcher.destroyIPC(child);
164 watcher.clearFileFilters();
165 const clearGraceReport = reportGracefulTermination();
166 await killAndWait();
167 clearGraceReport();
168}
169
170let restarting = false;
171

Callers 1

restartFunction · 0.70

Calls 4

killAndWaitFunction · 0.85
destroyIPCMethod · 0.80
clearFileFiltersMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…