aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-07-16 23:23:07 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-07-16 23:23:07 +0200
commit57d8dda3508568b794cb5cb73e9c1af8c4fbca6a (patch)
treef0e9685c925180058a42908fa88190b1ff041f38
parent425617abdfab9fdb20a7aa3e451c6299e2ebdf0c (diff)
nDPId-test: Fixed invalid error retval when epoll_wait() returns EINTR.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--nDPId-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nDPId-test.c b/nDPId-test.c
index 71f2c8cba..322bdfb80 100644
--- a/nDPId-test.c
+++ b/nDPId-test.c
@@ -355,9 +355,9 @@ static void * nDPIsrvd_mainloop_thread(void * const arg)
{
errno = 0;
int nready = epoll_wait(epollfd, events, events_size, -1);
-
- if (nready < 0)
+ if (nready < 0 && errno != EINTR)
{
+ logger(1, "%s", "nDPIsrvd epoll wait failed.");
THREAD_ERROR_GOTO(arg);
}