edge case
This commit is contained in:
parent
3673b4e403
commit
6fe0da030d
|
@ -192,7 +192,11 @@ class Job {
|
||||||
processes = processes.filter(proc => proc.uid == this.uid);
|
processes = processes.filter(proc => proc.uid == this.uid);
|
||||||
|
|
||||||
for(const proc of processes){
|
for(const proc of processes){
|
||||||
|
try{
|
||||||
process.kill(proc.pid, 'SIGKILL');
|
process.kill(proc.pid, 'SIGKILL');
|
||||||
|
}catch{
|
||||||
|
// Could already be dead and just needs to be waited on
|
||||||
|
}
|
||||||
wait_pid(proc.pid);
|
wait_pid(proc.pid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue