summaryrefslogtreecommitdiffstats
path: root/ldadp.c
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-25 17:50:33 +0100
committerSimon Rettberg2015-02-25 17:50:33 +0100
commitdd1b647b0b8193a58c047daee6079417b07a5ac5 (patch)
treef943759257defe1f57bf1921b84a483e3be8494b /ldadp.c
parentHack in support for numeric account names (diff)
downloadldadp-dd1b647b0b8193a58c047daee6079417b07a5ac5.tar.gz
ldadp-dd1b647b0b8193a58c047daee6079417b07a5ac5.tar.xz
ldadp-dd1b647b0b8193a58c047daee6079417b07a5ac5.zip
Fix epoll based detection of closed connections
Diffstat (limited to 'ldadp.c')
-rw-r--r--ldadp.c2
1 files changed, 1 insertions, 1 deletions
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)