server: try staged cleanup

This commit is contained in:
Koushik Dutta
2025-02-18 13:46:11 -08:00
parent d2810b09ed
commit f88f0a25db

View File

@@ -44,7 +44,8 @@ export abstract class ChildProcessWorker extends EventEmitter implements Runtime
kill(): void {
if (!this.worker)
return;
this.worker.kill('SIGKILL');
this.worker.kill();
setTimeout(() => this.worker.kill('SIGKILL'), 1000);
this.worker = undefined;
}