mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
Warn on errors when killing process group
This commit is contained in:
parent
f9b8fbd9c0
commit
349beeb45a
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue