Retry interrupted kevent() call.
This commit is contained in:
parent
456e2df90c
commit
3cbe77cd4f
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port)
|
|||
for (;;) {
|
||||
evs = kevent(kq, NULL, 0, event, nsockets, NULL);
|
||||
if (evs < 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
|
||||
L9P_LOG(L9P_ERROR, "kevent(): %s", strerror(errno));
|
||||
return (-1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue