pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:326:
lock=started=0; return; }; lock=0; if(pgsqlsess) pgsqlsess->_connectfail(); } 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() { catch(close()); // Exceptions don't work inside destructors pgsqlsess=0; } final void connectloop(int nossl) { mixed err=catch { for(;;clear()) {