diff --git a/util/socket.cpp b/util/socket.cpp index c585f7be..6753d7ce 100644 --- a/util/socket.cpp +++ b/util/socket.cpp @@ -484,7 +484,7 @@ Socket::Connection Socket::Server::accept(bool nonblock){ } Socket::Connection tmp(r); if (r < 0){ - if (errno != EWOULDBLOCK && errno != EAGAIN){ + if ((errno != EWOULDBLOCK) && (errno != EAGAIN) && (errno != EINTR)){ #if DEBUG >= 1 fprintf(stderr, "Error during accept - closing server socket.\n"); #endif