From: sgunderson@bigfoot.com <> Date: Tue, 13 Feb 2007 22:50:30 +0000 (+0100) Subject: Add the first round of EAGAIN tests. X-Git-Url: https://git.sesse.net/?p=jam;a=commitdiff_plain;h=ea1f7541e448ba8ba21ff62e51ba01278c8d9784 Add the first round of EAGAIN tests. --- diff --git a/jam.c b/jam.c index d0c7923..a8cef5a 100644 --- a/jam.c +++ b/jam.c @@ -245,6 +245,8 @@ void *sender_worker(void *arg) for ( ;; ) { int num_active = epoll_wait(ep_fd, events, num_sockets_per_sender, -1); if (num_active == -1) { + if (errno == EAGAIN) + continue; perror("epoll_wait"); exit(1); } @@ -334,6 +336,8 @@ void *receiver_worker(void *arg) for ( ;; ) { int num_active = epoll_wait(ep_fd, events, epoll_room_in_receiver, -1); if (num_active == -1) { + if (errno == EAGAIN) + continue; perror("epoll_wait"); exit(1); }