From d5e0106d8e5dedf780882e1fd89cb834d606fc08 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 5 Jun 2016 14:19:46 +0300 Subject: [PATCH] Change EINTR handling in poller. --- poller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poller.c b/poller.c index 4058321..eeff216 100644 --- a/poller.c +++ b/poller.c @@ -79,7 +79,7 @@ void cSatipPoller::Action(void) // Do the thread loop while (Running()) { int nfds = epoll_wait(fdM, events, eMaxFileDescriptors, -1); - ERROR_IF_FUNC((nfds == -1), "epoll_wait() failed", break, ;); + ERROR_IF_FUNC((nfds == -1 && errno != EINTR), "epoll_wait() failed", break, ;); for (int i = 0; i < nfds; ++i) { cSatipPollerIf* poll = reinterpret_cast(events[i].data.ptr); if (poll) {