ctld: Return from the inner "main" loop on EINTR
This ensures that child processes are reaped in the outer loop in
main().
PR: 294035
Reviewed by: asomers
Fixes: 66b107e82b ("ctld: Use kevent(2) for socket events rather than select(2)")
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D56525
This commit is contained in:
committed by
John Baldwin
parent
505f381cb9
commit
e56687bb2d
@@ -2418,7 +2418,7 @@ main_loop(bool dont_fork)
|
||||
error = kevent(kqfd, NULL, 0, &kev, 1, NULL);
|
||||
if (error == -1) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
return;
|
||||
log_err(1, "kevent");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user