diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-01-09 02:02:43 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-01-09 02:02:43 +0000 |
| commit | 0150dbdce54f24596547048d4d6617d62a2570a4 (patch) | |
| tree | b2093a0e2efb39f29ce45bc3464b25dd6b298fba /src/interfaces/libpq/pqsignal.h | |
| parent | acc57543debdd2de93c2c5df31702ef8ecd461b5 (diff) | |
| download | postgresql-0150dbdce54f24596547048d4d6617d62a2570a4.tar.gz | |
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.
Diffstat (limited to 'src/interfaces/libpq/pqsignal.h')
| -rw-r--r-- | src/interfaces/libpq/pqsignal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/libpq/pqsignal.h b/src/interfaces/libpq/pqsignal.h index 3dcb8a8b95..a948802022 100644 --- a/src/interfaces/libpq/pqsignal.h +++ b/src/interfaces/libpq/pqsignal.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.16 2003/11/29 22:41:28 pgsql Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/pqsignal.h,v 1.17 2004/01/09 02:02:43 momjian Exp $ * * NOTES * This shouldn't be in libpq, but the monitor and some other @@ -24,4 +24,6 @@ typedef void (*pqsigfunc) (int); extern pqsigfunc pqsignal(int signo, pqsigfunc func); +extern pqsigfunc pqsignalinquire(int signo); + #endif /* PQSIGNAL_H */ |
