From: Howard Chu Date: Thu, 29 Jan 2009 22:43:18 +0000 (+0000) Subject: check mutex in connection_write() X-Git-Tag: ACLCHECK_0~914 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f809c45eb85867196c6008e482b1f8a07075998;p=openldap check mutex in connection_write() --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 9e2130d6de..969fcf1cc5 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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 );