pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-11
2014-12-11 10:16:54 by Stephen R. van den Berg <srb@cuci.nl>
9545224faab6660daee69861fcb846a2712f67ac (
10
lines) (+
7
/-
3
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Explicitly dislodge read mutex upon fd close.
333:
final void sendterminate() { Thread.MutexKey lock=i->fillreadmux->lock();
-
i->fillread
.signal(
)
;
-
i->fillread=0;
// Delayed close() after flushing the output buffer
+
if(
i->fillread) // Delayed close() after flushing the output buffer
+
i->fillread.signal(), i->fillread=0;
lock=0; } final int close() {
-
+
int ret;
destruct(nostash); PD("%d>Close socket\n",socket->query_fd());
-
return
socket->close();
+
ret=
socket->close();
+
sendterminate();
+
return ret;
} protected void destroy() {