Fixed accept call getting interrupted by child reaping

This commit is contained in:
Thulinma 2011-10-07 03:27:21 +02:00
parent 9849a0302a
commit e65a391aa1

View file

@ -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