mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-25 08:12:54 -05:00
ITS#3671 must release conn->c_mutex to allow blocked writers to exit
This commit is contained in:
parent
df22b333a5
commit
0f4a5f7445
1 changed files with 6 additions and 1 deletions
|
|
@ -767,7 +767,12 @@ void connection_closing( Connection *c )
|
|||
|
||||
/* wake write blocked operations */
|
||||
slapd_clr_write( sd, 1 );
|
||||
ldap_pvt_thread_cond_signal( &c->c_write_cv );
|
||||
if ( c->c_writewaiter ) {
|
||||
ldap_pvt_thread_cond_signal( &c->c_write_cv );
|
||||
ldap_pvt_thread_mutex_unlock( &c->c_mutex );
|
||||
ldap_pvt_thread_yield();
|
||||
ldap_pvt_thread_mutex_lock( &c->c_mutex );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue