Skip to content
Snippets Groups Projects
Commit 9b60ebe7 authored by Travis Glenn Hansen's avatar Travis Glenn Hansen
Browse files

gracefully handle suspend/resume. fixes #19

parent 280e903f
Branches
No related tags found
No related merge requests found
......@@ -503,8 +503,13 @@ xit\n");
fanout_debug (3, "server waiting for new activity\n");
if ((nevents = epoll_wait (epollfd, events, max_events, -1)) == -1)
errno = 0;
if ((nevents = epoll_wait (epollfd, events, max_events, -1)) == -1) {
if (errno == EINTR) {
continue;
}
fanout_error ("epoll_wait");
}
if (nevents == 0) {
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment