From 159cea0bba2ea0ed30c9e7c122e0855153903c01 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Dec 2025 15:32:28 +0000 Subject: [PATCH] ITS#10258 daemon/epoll: fix check for active socket Lock sd_mutex before checking --- servers/slapd/daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 617a2f3946..e7559ca2ff 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -3115,9 +3115,11 @@ loop: #ifdef HAVE_EPOLL /* Don't keep reporting the hangup */ + ldap_pvt_thread_mutex_lock( &slap_daemon[tid].sd_mutex ); if ( SLAP_SOCK_IS_ACTIVE( tid, fd )) { SLAP_EPOLL_SOCK_SET( tid, fd, EPOLLET ); } + ldap_pvt_thread_mutex_unlock( &slap_daemon[tid].sd_mutex ); #endif } }