From c7a8625da7f7063c86dba7606a0cb8ef9304c183 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 19 Nov 2004 00:13:00 +0000 Subject: [PATCH] Fix waking test --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 \ -- 2.39.5