From 68e064ca8470968e04beddac1457c4c836ae152d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 9 Feb 2017 17:20:28 +0000 Subject: [PATCH] ITS#8725 Avoid listener thread startup race Typically only shows up under valgrind, not in regular runs --- servers/slapd/daemon.c | 1 + 1 file changed, 1 insertion(+) 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 ) { -- 2.39.5