fix: worker.kill should do less
This commit is contained in:
parent
64a895d6b6
commit
cf0b780182
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user