From cf0b780182613bdad87556ecc6d84cee659f46f3 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 11 Feb 2024 22:37:14 -0600 Subject: [PATCH] fix: worker.kill should do less --- packages/server/build/start.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/build/start.js b/packages/server/build/start.js index 4380e1c..ee8a8f6 100644 --- a/packages/server/build/start.js +++ b/packages/server/build/start.js @@ -30,7 +30,10 @@ class StartServerPlugin { compiler.hooks.afterEmit.tapPromise(pluginName, async (compilation) => { if (this.worker && this.worker.isConnected()) { if (signal) { - this.worker.kill(true === signal ? 'SIGUSR2' : signal); + process.kill( + this.worker.process.pid, + true === signal ? 'SIGUSR2' : signal, + ); return undefined; } const promise = new Promise((resolve) => {