Skip to content
Snippets Groups Projects
Commit 656c6011 authored by Howard Chu's avatar Howard Chu
Browse files

Fix epoll, slapd_remove gets called multiple times for the same descriptor.

Ignore subsequent calls.
parent 5e416949
Branches
Tags
No related merge requests found
......@@ -194,6 +194,7 @@ static struct slap_daemon {
# define SLAP_DEL_SOCK(s) do { \
int fd, rc, index = SLAP_SOCK_IX((s)); \
if ( index < 0 ) break; \
rc = epoll_ctl(slap_daemon.sd_epfd, EPOLL_CTL_DEL, \
(s), &SLAP_SOCK_EP((s))); \
slap_daemon.sd_epolls[index] = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment