mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 11:59:45 -05:00
ITS#10258 daemon/epoll: fix check for active socket
Lock sd_mutex before checking
This commit is contained in:
parent
ab4f4bcf5c
commit
159cea0bba
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue