Don't treat EINTR as an error

When the epoll_wait call returns with an error and errno is set to EINTR,
no warning should be logged as this is correct behavior.
This commit is contained in:
Markus Mäkelä 2018-03-20 11:22:29 +02:00
parent e45759d35d
commit 0fde6e501d
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1185,7 +1185,7 @@ void Worker::poll_waitevents()
nfds = epoll_wait(m_epoll_fd, events, MAX_EVENTS, timeout);
m_load.about_to_work();
if (nfds == -1)
if (nfds == -1 && errno != EINTR)
{
int eno = errno;
errno = 0;