mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix prev commit
This commit is contained in:
parent
f825367acf
commit
f0372748e8
@ -163,11 +163,11 @@ static struct slap_daemon {
|
|||||||
rc = epoll_ctl(slap_daemon.sd_epfd, EPOLL_CTL_ADD, s, \
|
rc = epoll_ctl(slap_daemon.sd_epfd, EPOLL_CTL_ADD, s, \
|
||||||
&SLAP_SOCK_EP(s)); \
|
&SLAP_SOCK_EP(s)); \
|
||||||
if ( rc == 0 ) slap_daemon.sd_nfds++; \
|
if ( rc == 0 ) slap_daemon.sd_nfds++; \
|
||||||
else {
|
else { \
|
||||||
Debug( LDAP_DEBUG_ANY, "daemon: epoll_ctl ADD failed, errno %d, shutting down\n"
|
Debug( LDAP_DEBUG_ANY, "daemon: epoll_ctl ADD failed, errno %d, shutting down\n", \
|
||||||
errno, 0, 0 );
|
errno, 0, 0 ); \
|
||||||
slapd_shutdown = 2; \
|
slapd_shutdown = 2; \
|
||||||
}
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define SLAP_EV_LISTENER(ptr) (((int *)(ptr) >= slap_daemon.sd_index && \
|
#define SLAP_EV_LISTENER(ptr) (((int *)(ptr) >= slap_daemon.sd_index && \
|
||||||
|
Loading…
Reference in New Issue
Block a user