From 30f4e693ce7affab3884e9e8230ff3b989247de9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Mar 2011 21:03:21 +0000 Subject: [PATCH] fixing 1667 --- ChangeLog | 4 ++++ src/daemon/daemon.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a67dd67..c9275bc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Mar 5 22:00:36 CET 2011 + Do not use POLLRDHUP, which causes build errors on OS X / OpenSolaris + (#1667). -CG + Fri Mar 4 10:24:04 CET 2011 Added new API to allow MHD server to initiate connection to client (special use-case for servers behind NAT), thereby diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 54b73f9b..77444409 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -650,7 +650,7 @@ MHD_handle_connection (void *data) fd = con->daemon->socket_fd; p[1].fd = fd; - p[1].events |= POLLIN | POLLRDHUP; + p[1].events |= POLLIN; if (poll (p, (fd != -1) ? 2 : 1,