Fixed accept call getting interrupted by child reaping

This commit is contained in:
Thulinma 2011-10-07 03:27:21 +02:00
parent 4f00a029c6
commit 63a7100cc3

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