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 235b5482fc
commit 8663313aef

View file

@ -3116,9 +3116,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
}
}