From: Howard Chu Date: Thu, 18 Nov 2004 15:40:49 +0000 (+0000) Subject: Allow a small number of waking events to be outstanding, not just 1 X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~280 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=04641552054354872451aad1274160fe881e1b59;p=openldap Allow a small number of waking events to be outstanding, not just 1 (chose 5 arbitrarily) --- 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;