Retry interrupted kevent() call.

This commit is contained in:
Jakub Klama 2016-01-31 02:02:53 +01:00
parent 456e2df90c
commit 3cbe77cd4f

View file

@ -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);
}