diff options
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, |