Skip to content

Commit 61e7abd

Browse files
fix: add windows signals SIGUSR2 & SIGUSR1 to terminate the process (#1938)
Authored-by: mohamed <[email protected]> Fixes: #1903, #1915, #1936, #1937, #1882, #1893
1 parent b449171 commit 61e7abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/monitor/run.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,10 @@ function kill(child, signal, callback) {
333333
}
334334
};
335335

336-
// We are handling a 'SIGKILL' POSIX signal under Windows the
336+
// We are handling a 'SIGKILL' , 'SIGUSR2' and 'SIGUSR1' POSIX signal under Windows the
337337
// same way it is handled on a UNIX system: We are performing
338338
// a hard shutdown without waiting for the process to clean-up.
339-
if (signal === 'SIGKILL' || osRelease < 10) {
339+
if (signal === 'SIGKILL' || osRelease < 10 || signal === 'SIGUSR2' || signal==="SIGUSR1" ) {
340340
debug('terminating process group by force: %s', child.pid);
341341

342342
// We are using the taskkill utility to terminate the whole

0 commit comments

Comments
 (0)