[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:
Nathan Rajlich
2022-05-19 18:16:09 -07:00
committed by GitHub
parent e829ce47c3
commit 0d1dc23d0d

View File

@@ -1040,7 +1040,12 @@ export default class DevServer {
const { debug } = this.output;
debug(`Killing builder dev server with PID ${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(