ITS#10258 daemon/epoll: fix check for active socket

Lock sd_mutex before checking
This commit is contained in:
Howard Chu 2025-12-18 15:32:28 +00:00 committed by Quanah Gibson-Mount
parent ab4f4bcf5c
commit 159cea0bba

View file

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