From: Robert Sanford Date: Tue, 18 Aug 2015 15:53:54 +0000 (-0400) Subject: eal/linux: fix epoll timeout X-Git-Tag: spdx-start~8484 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=79db649c4b8222d0f80b27d3f5d20a3ed40fa09b;p=dpdk.git eal/linux: fix epoll timeout Function rte_epoll_wait should return when underlying call to epoll_wait times out. Signed-off-by: Robert Sanford Acked-by: Cunming Liang --- diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 66e1fe3226..078318ce10 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -1002,6 +1002,9 @@ rte_epoll_wait(int epfd, struct rte_epoll_event *events, strerror(errno)); rc = -1; break; + } else { + /* rc == 0, epoll_wait timed out */ + break; } }