From: Howard Chu Date: Thu, 9 Feb 2017 17:20:28 +0000 (+0000) Subject: ITS#8725 Avoid listener thread startup race X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=68e064ca8470968e04beddac1457c4c836ae152d;p=openldap ITS#8725 Avoid listener thread startup race Typically only shows up under valgrind, not in regular runs --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 6947df5f9a..f14a4160d7 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -2421,6 +2421,7 @@ loop: if ( lr->sl_sd == AC_SOCKET_INVALID ) continue; if ( DAEMON_ID( lr->sl_sd ) != tid ) continue; + if ( !SLAP_SOCK_IS_ACTIVE( tid, lr->sl_sd )) continue; if ( lr->sl_mute || lr->sl_busy ) {