summaryrefslogtreecommitdiff
path: root/network_io/unix/socket_util.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2014-05-27 07:00:33 +0000
committerPeter Wemm <peter@FreeBSD.org>2014-05-27 07:00:33 +0000
commitbc9ddba9ef9abe23eadcdb51b2ce814c00c00639 (patch)
tree6266be92f31f93e7851b958a90b1f93c3aefbbe8 /network_io/unix/socket_util.c
parentf2be5817e9c3cb98a81689acb42dc6549ae0448f (diff)
Notes
Diffstat (limited to 'network_io/unix/socket_util.c')
-rw-r--r--network_io/unix/socket_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/network_io/unix/socket_util.c b/network_io/unix/socket_util.c
index 6cd28a55c432..93fe25976adb 100644
--- a/network_io/unix/socket_util.c
+++ b/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;