Allow libpq to do thread-safe SIGPIPE handling. This allows it to
Bruce Momjian <bruce@momjian.us>
Allow libpq to do thread-safe SIGPIPE handling. This allows it to ignore SIGPIPE from send() in libpq, but terminate on any other SIGPIPE, unless the user installs their own signal handler. This is a minor fix because the only time you get SIGPIPE from libpq's send() is when the backend dies.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +21 −2 |
| src/backend/nodes/read.c | modified | +2 −1 |
| src/interfaces/libpq/fe-connect.c | modified | +13 −2 |
| src/interfaces/libpq/fe-print.c | modified | +14 −2 |
| src/interfaces/libpq/fe-secure.c | modified | +74 −1 |
| src/interfaces/libpq/libpq-fe.h | modified | +9 −1 |
| src/interfaces/libpq/libpq-int.h | modified | +8 −1 |
| src/interfaces/libpq/pqsignal.c | modified | +23 −1 |
| src/interfaces/libpq/pqsignal.h | modified | +3 −1 |