Fixed accept call getting interrupted by child reaping
This commit is contained in:
parent
9849a0302a
commit
e65a391aa1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue