From: Howard Chu Date: Thu, 18 Nov 2004 23:08:57 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~272 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0372748e81e57a3fd64a67d321ecd311b251669;p=openldap Fix prev commit --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 04e285e056..79e0e85084 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -163,11 +163,11 @@ static struct slap_daemon { rc = epoll_ctl(slap_daemon.sd_epfd, EPOLL_CTL_ADD, s, \ &SLAP_SOCK_EP(s)); \ if ( rc == 0 ) slap_daemon.sd_nfds++; \ - else { - Debug( LDAP_DEBUG_ANY, "daemon: epoll_ctl ADD failed, errno %d, shutting down\n" - errno, 0, 0 ); + else { \ + Debug( LDAP_DEBUG_ANY, "daemon: epoll_ctl ADD failed, errno %d, shutting down\n", \ + errno, 0, 0 ); \ slapd_shutdown = 2; \ - } + } \ } while(0) #define SLAP_EV_LISTENER(ptr) (((int *)(ptr) >= slap_daemon.sd_index && \