mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 21:19:53 -05:00
Fix epoll, slapd_remove gets called multiple times for the same descriptor.
Ignore subsequent calls.
This commit is contained in:
parent
5e416949e0
commit
656c6011bb
1 changed files with 1 additions and 0 deletions
|
|
@ -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] = \
|
||||
|
|
|
|||
Loading…
Reference in a new issue