mirror of https://git.kore.io/kore.git
Do not dispatch signals to workers without a valid pid.
thanks rille.
This commit is contained in:
parent
ce360e15d6
commit
262a2512f1
|
@ -271,6 +271,10 @@ kore_worker_dispatch_signal(int sig)
|
|||
|
||||
for (idx = 0; idx < worker_count; idx++) {
|
||||
kw = WORKER(idx);
|
||||
|
||||
if (kw->pid == -1 || kw->pid == 0)
|
||||
continue;
|
||||
|
||||
if (kill(kw->pid, sig) == -1) {
|
||||
kore_debug("kill(%d, %d): %s", kw->pid, sig, errno_s);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue