nDPId-test: Fixed invalid error retval when epoll_wait() returns EINTR.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2023-07-16 23:23:07 +02:00
parent 425617abdf
commit 57d8dda350

View File

@@ -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);
}