mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +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 {
|
try {
|
||||||
process.kill(-proc.pid, 'SIGKILL');
|
process.kill(-proc.pid, 'SIGKILL');
|
||||||
} catch {
|
} catch(e) {
|
||||||
|
logger.warn(e)
|
||||||
// Process will be dead already, so nothing to kill.
|
// Process will be dead already, so nothing to kill.
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue