mirror of https://git.kore.io/kore.git
set a worker its running flag to 0 if it dies.
This commit is contained in:
parent
0b659807bf
commit
08d66e3926
|
@ -686,6 +686,8 @@ worker_reaper(pid_t pid, int status)
|
|||
kw->id, pid, status);
|
||||
}
|
||||
|
||||
kw->running = 0;
|
||||
|
||||
if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {
|
||||
kw->pid = 0;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue