From 5f809c45eb85867196c6008e482b1f8a07075998 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 29 Jan 2009 22:43:18 +0000 Subject: [PATCH] check mutex in connection_write() --- servers/slapd/connection.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.39.5