diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-23 22:30:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-23 22:30:47 +0000 |
commit | a244273450a9335a9ddcbe361876b98b8f1121bd (patch) | |
tree | 6fa65311811dfe780d4c542c0332e2e50577359b /src/daemon/daemon.c | |
parent | 2d15eceddf5b213e4c21137a12f267fee0e1c775 (diff) | |
download | libmicrohttpd-a244273450a9335a9ddcbe361876b98b8f1121bd.tar.gz libmicrohttpd-a244273450a9335a9ddcbe361876b98b8f1121bd.zip |
pollin issue
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index b85c8510..a2dbba0e 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -647,7 +647,7 @@ MHD_handle_connection (void *data) | |||
647 | 647 | ||
648 | fd = con->daemon->socket_fd; | 648 | fd = con->daemon->socket_fd; |
649 | p[1].fd = fd; | 649 | p[1].fd = fd; |
650 | p[1].events |= POLLIN; | 650 | p[1].events = 0; /* only care about POLLHUP */ |
651 | 651 | ||
652 | if (poll (p, | 652 | if (poll (p, |
653 | (fd != -1) ? 2 : 1, | 653 | (fd != -1) ? 2 : 1, |