MCPcopy Create free account
hub / github.com/vercel/vercel / killBuilderDevServer

Method killBuilderDevServer

packages/cli/src/util/dev/server.ts:1322–1340  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

1320 }
1321
1322 async killBuilderDevServer(pid: number) {
1323 const { debug } = output;
1324 debug(`Killing builder dev server with PID ${pid}`);
1325 const shutdownCb = this.shutdownCallbacks.get(pid);
1326 this.shutdownCallbacks.delete(pid);
1327
1328 if (shutdownCb) {
1329 debug(`Running shutdown callback for PID ${pid}`);
1330 await shutdownCb();
1331 return;
1332 }
1333
1334 try {
1335 await treeKill(pid);
1336 debug(`Killed builder dev server with PID ${pid}`);
1337 } catch (err) {
1338 debug(`Failed to kill builder dev server with PID ${pid}: ${err}`);
1339 }
1340 }
1341
1342 async send404(
1343 req: http.IncomingMessage,

Callers 2

stopMethod · 0.95
DevServerClass · 0.95

Calls 4

treeKillFunction · 0.90
getMethod · 0.65
debugFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected