]> git.sur5r.net Git - openldap/commitdiff
Allow a small number of waking events to be outstanding, not just 1
authorHoward Chu <hyc@openldap.org>
Thu, 18 Nov 2004 15:40:49 +0000 (15:40 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Nov 2004 15:40:49 +0000 (15:40 +0000)
(chose 5 arbitrarily)

servers/slapd/daemon.c

index 0d386bf2ef773a65fa4a01563bb6ab6747ac1535..3c31b18a5f3974dc3d2b73473a463842445a65b8 100644 (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;