mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
[cli] Don't use tree-kill for shutting down startDevServer() process in vc dev (#7830)
Follow-up to #7824 since using `tree-kill` here seems to make a CLI test hang forever.
This commit is contained in:
@@ -1040,7 +1040,12 @@ export default class DevServer {
|
|||||||
const { debug } = this.output;
|
const { debug } = this.output;
|
||||||
debug(`Killing builder dev server with PID ${pid}`);
|
debug(`Killing builder dev server with PID ${pid}`);
|
||||||
this.devServerPids.delete(pid);
|
this.devServerPids.delete(pid);
|
||||||
await treeKill(pid);
|
try {
|
||||||
|
process.kill(pid, 'SIGTERM');
|
||||||
|
debug(`Killed builder dev server with PID ${pid}`);
|
||||||
|
} catch (err) {
|
||||||
|
debug(`Failed to kill builder dev server with PID ${pid}: ${err}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async send404(
|
async send404(
|
||||||
|
|||||||
Reference in New Issue
Block a user