From: Howard Chu Date: Fri, 19 Nov 2004 00:13:00 +0000 (+0000) Subject: Fix waking test X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~271 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7a8625da7f7063c86dba7606a0cb8ef9304c183;p=openldap Fix waking test --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 79e0e85084..a0efe04256 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -80,7 +80,7 @@ static int emfile; static int waking; #define WAKE_LISTENER(w) \ -do { if (w && waking < 5) { tcp_write( wake_sds[1], "0", 1 ); waking++;} } while(0) +do { if (w && waking < 5) { waking++; tcp_write( wake_sds[1], "0", 1 ); } } while(0) volatile sig_atomic_t slapd_shutdown = 0, slapd_gentle_shutdown = 0; volatile sig_atomic_t slapd_abrupt_shutdown = 0; @@ -228,7 +228,7 @@ static struct slap_daemon { #define SLAP_EVENT_INIT \ AC_MEMCPY( &readfds, &slap_daemon.sd_readers, sizeof(fd_set) ); \ if ( nwriters ) \ - AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) ); + AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) ) #ifdef FD_SETSIZE #define CHK_SETSIZE \