1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 10:36:38 +02:00

Ignore the EINTR error from epoll_wait, it isnt always a real error

This commit is contained in:
Adam
2010-10-04 16:57:11 -04:00
parent 58a3e2bbb7
commit 3fa2659309
@@ -121,7 +121,8 @@ class SocketEngineEPoll : public SocketEngineBase
int total = epoll_wait(EngineHandle, events, max - 1, Config->ReadTimeout * 1000);
Anope::CurTime = time(NULL);
if (total == -1)
/* EINTR can be given if the read timeout expires */
if (total == -1 && errno != EINTR)
{
Log() << "SockEngine::Process(): error: " << Anope::LastError();
return;