From dd1b647b0b8193a58c047daee6079417b07a5ac5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 25 Feb 2015 17:50:33 +0100 Subject: Fix epoll based detection of closed connections --- ldadp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldadp.c') diff --git a/ldadp.c b/ldadp.c index b0e8e52..584da8a 100644 --- a/ldadp.c +++ b/ldadp.c @@ -101,7 +101,7 @@ static void listen_callback(void *data, int haveIn, int haveOut, int doCleanup) free(client); return; } - ePoll_add(EPOLLIN | EPOLLOUT | EPOLLET, (epoll_item_t*)client); + ePoll_add(EPOLLIN | EPOLLOUT | EPOLLET | EPOLLRDHUP, (epoll_item_t*)client); } static int loadConfig_handler(void *stuff, const char *section, const char *key, const char *value) -- cgit v1.2.3-55-g7522