Skip to content
Permalink
Browse files
eintr bugfix
  • Loading branch information
Matt Avery committed Aug 28, 2019
1 parent 4d05595 commit 127093f
Showing 1 changed file with 2 additions and 2 deletions.
4 misc.c
@@ -257,7 +257,7 @@ waitrfd(int fd, int *timeoutp)
errno = oerrno;
if (r > 0)
return 0;
else if (r == -1 && errno != EAGAIN)
else if (r == -1 && errno != EAGAIN && errno != EINTR)
return -1;
else if (r == 0)
break;
@@ -290,7 +290,7 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr,
/* Succeeded already? */
unset_nonblock(sockfd);
return 0;
} else if (errno != EINPROGRESS)
} else if (errno != EINPROGRESS && errno != EINTR)
return -1;

if (waitrfd(sockfd, timeoutp) == -1)

0 comments on commit 127093f

Please sign in to comment.