mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 17:32:23 +00:00
nDPId-test: Fixed invalid error retval when epoll_wait() returns EINTR.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user