Allow a small number of waking events to be outstanding, not just 1

(chose 5 arbitrarily)
This commit is contained in:
Howard Chu 2004-11-18 15:40:49 +00:00
parent 69dc60e5ca
commit 0464155205

View File

@ -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;