mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Handle ECHILD when reaping workers on shutdown.
If the child process is already dead we must handle it accordingly instead of getting stuck waiting on it.
This commit is contained in:
parent
23d762d682
commit
6dc162e7ee
@ -306,7 +306,7 @@ kore_worker_shutdown(void)
|
||||
|
||||
if (kw->pid != 0) {
|
||||
pid = waitpid(kw->pid, &status, 0);
|
||||
if (pid == -1)
|
||||
if (pid == -1 && errno != ECHILD)
|
||||
continue;
|
||||
|
||||
#if defined(__linux__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user