Rework libpq threaded SIGPIPE handling to avoid interference with
Bruce Momjian <bruce@momjian.us>
Rework libpq threaded SIGPIPE handling to avoid interference with calling applications. This is done by blocking sigpipe in the libpq thread and using sigpending/sigwait to possibily discard any sigpipe we generated.
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +12 −0 |
| configure.in | modified | +8 −1 |
| doc/src/sgml/libpq.sgml | modified | +1 −19 |
| doc/src/sgml/ref/copy.sgml | modified | +2 −1 |
| src/interfaces/libpq/fe-connect.c | modified | +1 −10 |
| src/interfaces/libpq/fe-print.c | modified | +10 −4 |
| src/interfaces/libpq/fe-secure.c | modified | +73 −59 |
| src/interfaces/libpq/libpq-fe.h | modified | +1 −7 |
| src/interfaces/libpq/libpq-int.h | modified | +7 −6 |