From 04641552054354872451aad1274160fe881e1b59 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Nov 2004 15:40:49 +0000 Subject: [PATCH] Allow a small number of waking events to be outstanding, not just 1 (chose 5 arbitrarily) --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 0d386bf2ef..3c31b18a5f 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -76,7 +76,7 @@ static int emfile; static int waking; #define WAKE_LISTENER(w) \ -do { if (w && !waking) tcp_write( wake_sds[1], "0", 1 ); waking=w; } while(0) +do { if (w && waking < 5) { tcp_write( wake_sds[1], "0", 1 ); waking++;} } while(0) volatile sig_atomic_t slapd_shutdown = 0, slapd_gentle_shutdown = 0; volatile sig_atomic_t slapd_abrupt_shutdown = 0; -- 2.39.5