pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-10-30
2017-10-30 23:05:26 by Stephen R. van den Berg <srb@cuci.nl>
0282f9b98c6b67a1a0b87758085922e438f2cfb0 (
12
lines) (+
10
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Suppress 'File not open' output on stderr for query_fd().
277:
} };
+
class sfile {
+
inherit Stdio.File;
+
int query_fd() {
+
return is_open() ? ::query_fd() : -1;
+
}
+
};
+
class conxion { inherit Stdio.Buffer:o; final conxiin i;
285:
final Thread.Mutex shortmux; private int closenext;
-
final
Stdio.File
socket;
+
final
sfile
socket;
private function(void|mixed:void) connectfail; private int towrite; final multiset(function(void|mixed:void)) closecallbacks=(<>);
524:
o::create(); qportals = _qportals; synctransact = 1;
-
socket=
Stdio.File
();
+
socket=
sfile
();
i=conxiin(); shortmux=Thread.Mutex(); nostash=Thread.Mutex();