aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-01-09 02:17:15 +0000
committerBruce Momjian <bruce@momjian.us>2004-01-09 02:17:15 +0000
commit59182d99018b5c2c2f4e7c65289fd947cf5a50ff (patch)
treec0748680d832571cd28714344b722d9aeecb3f2a /src
parent0150dbdce54f24596547048d4d6617d62a2570a4 (diff)
downloadpostgresql-59182d99018b5c2c2f4e7c65289fd947cf5a50ff.tar.gz
postgresql-59182d99018b5c2c2f4e7c65289fd947cf5a50ff.zip
Add comment about synchronous signals.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-secure.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c
index e650b6b275e..56a0254cfdf 100644
--- a/src/interfaces/libpq/fe-secure.c
+++ b/src/interfaces/libpq/fe-secure.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.35 2004/01/09 02:02:43 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.36 2004/01/09 02:17:15 momjian Exp $
*
* NOTES
* The client *requires* a valid server certificate. Since
@@ -1099,7 +1099,11 @@ check_sigpipe_handler(void)
void
sigpipe_handler_ignore_send(int signo)
{
- /* If we have gotten a SIGPIPE outside send(), exit */
+ /*
+ * If we have gotten a SIGPIPE outside send(), exit.
+ * Synchronous signals are delivered to the thread
+ * that caused the signal.
+ */
if (!PQinSend())
exit(128 + SIGPIPE); /* typical return value for SIG_DFL */
}