mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
check mutex in connection_write()
This commit is contained in:
parent
4572e7d721
commit
5f809c45eb
@ -1859,7 +1859,9 @@ int connection_write(ber_socket_t s)
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"connection_write(%d): waking output for id=%lu\n",
|
||||
s, c->c_connid, 0 );
|
||||
ldap_pvt_thread_mutex_lock( &c->c_write2_mutex );
|
||||
ldap_pvt_thread_cond_signal( &c->c_write2_cv );
|
||||
ldap_pvt_thread_mutex_unlock( &c->c_write2_mutex );
|
||||
|
||||
if ( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_NEEDS_READ, NULL ) ) {
|
||||
slapd_set_read( s, 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user