Warn on errors when killing process group

This commit is contained in:
Thomas Hobson 2021-04-26 03:01:08 +12:00
parent f9b8fbd9c0
commit 349beeb45a
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ class Job {
try {
process.kill(-proc.pid, 'SIGKILL');
} catch {
} catch(e) {
logger.warn(e)
// Process will be dead already, so nothing to kill.
}
};