do not warn on accept when errno is egain|eintr

svn:r925
This commit is contained in:
Niels Provos 2008-07-25 05:22:28 +00:00
parent cca2f8fa0e
commit b89a3de044

3
http.c
View File

@ -2319,7 +2319,8 @@ accept_socket(evutil_socket_t fd, short what, void *arg)
evutil_socket_t nfd;
if ((nfd = accept(fd, (struct sockaddr *)&ss, &addrlen)) == -1) {
event_warn("%s: bad accept", __func__);
if (errno != EAGAIN && errno != EINTR)
event_warn("%s: bad accept", __func__);
return;
}
if (evutil_make_socket_nonblocking(nfd) < 0)