eal/linux: fix epoll timeout
authorRobert Sanford <rsanford2@gmail.com>
Tue, 18 Aug 2015 15:53:54 +0000 (11:53 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 8 Sep 2015 07:57:53 +0000 (09:57 +0200)
Function rte_epoll_wait should return when underlying call
to epoll_wait times out.

Signed-off-by: Robert Sanford <rsanford@akamai.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
lib/librte_eal/linuxapp/eal/eal_interrupts.c

index 66e1fe3..078318c 100644 (file)
@@ -1002,6 +1002,9 @@ rte_epoll_wait(int epfd, struct rte_epoll_event *events,
                                strerror(errno));
                        rc = -1;
                        break;
                                strerror(errno));
                        rc = -1;
                        break;
+               } else {
+                       /* rc == 0, epoll_wait timed out */
+                       break;
                }
        }
 
                }
        }