Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
eb16636a
Commit
eb16636a
authored
Oct 17, 2006
by
Howard Chu
Browse files
Tweak prev commit, add more notes (re ITS#4667)
parent
354e90a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
eb16636a
...
...
@@ -831,6 +831,10 @@ void connection_closing( Connection *c, const char *why )
/* wake write blocked operations */
if
(
c
->
c_writewaiter
)
{
ldap_pvt_thread_cond_signal
(
&
c
->
c_write_cv
);
/* ITS#4667 this may allow another thread to drop into
* connection_resched / connection_close before we
* finish, but that's OK.
*/
ldap_pvt_thread_mutex_unlock
(
&
c
->
c_mutex
);
slapd_clr_write
(
sd
,
1
);
ldap_pvt_thread_mutex_lock
(
&
c
->
c_write_mutex
);
...
...
@@ -854,10 +858,12 @@ connection_close( Connection *c )
assert
(
connections
!=
NULL
);
assert
(
c
!=
NULL
);
if
(
c
->
c_conn_state
!=
SLAP_C_CLOSING
)
/* ITS#4667 we may have gotten here twice */
if
(
c
->
c_conn_state
==
SLAP_C_INVALID
)
return
;
assert
(
c
->
c_struct_state
==
SLAP_C_USED
);
assert
(
c
->
c_struct_state
==
SLAP_C_CLOSING
);
/* NOTE: c_mutex should be locked by caller */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment