mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
If the main casperd process exits, zygote process should exit as well
instead of spinning. Reported by: Mikhail <mp@lenta.ru>
This commit is contained in:
parent
897f2a3892
commit
bf90d007d3
1 changed files with 6 additions and 1 deletions
|
|
@ -132,8 +132,13 @@ zygote_main(int sock)
|
|||
|
||||
for (;;) {
|
||||
nvlin = nvlist_recv(sock);
|
||||
if (nvlin == NULL)
|
||||
if (nvlin == NULL) {
|
||||
if (errno == ENOTCONN) {
|
||||
/* Casperd exited. */
|
||||
exit(0);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
func = (zygote_func_t *)(uintptr_t)nvlist_get_number(nvlin,
|
||||
"func");
|
||||
flags = (int)nvlist_get_number(nvlin, "flags");
|
||||
|
|
|
|||
Loading…
Reference in a new issue