diff options
Diffstat (limited to 'contrib/apr/network_io/unix/socket_util.c')
-rw-r--r-- | contrib/apr/network_io/unix/socket_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/apr/network_io/unix/socket_util.c b/contrib/apr/network_io/unix/socket_util.c index 6cd28a5..93fe259 100644 --- a/contrib/apr/network_io/unix/socket_util.c +++ b/contrib/apr/network_io/unix/socket_util.c @@ -46,7 +46,8 @@ APR_DECLARE(apr_status_t) apr_socket_atreadeof(apr_socket_t *sock, int *atreadeo /* Some other error -> unexpected error. */ return rv; } - else if (nfds == 1 && pfds[0].rtnevents == APR_POLLIN) { + /* Many platforms return only APR_POLLIN; OS X returns APR_POLLHUP|APR_POLLIN */ + else if (nfds == 1 && (pfds[0].rtnevents & APR_POLLIN) == APR_POLLIN) { apr_sockaddr_t unused; apr_size_t len = 1; char buf; |