mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 22:50:51 -05:00
check mutex in connection_write()
This commit is contained in:
parent
4572e7d721
commit
5f809c45eb
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue