1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 21:46:37 +02:00

Ignore EINTR error from poll()

This commit is contained in:
Adam
2011-01-08 03:35:04 -05:00
parent a674d81caf
commit 2ba97aee6c
2 changed files with 6 additions and 3 deletions
@@ -131,9 +131,11 @@ class SocketEnginePoll : public SocketEngineBase
int total = poll(this->events, this->SocketCount, Config->ReadTimeout * 1000);
Anope::CurTime = time(NULL);
/* EINTR can be given if the read timeout expires */
if (total == -1)
{
Log() << "SockEngine::Process(): error: " << Anope::LastError();
if (errno != EINTR)
Log() << "SockEngine::Process(): error: " << Anope::LastError();
return;
}