summaryrefslogtreecommitdiff
path: root/src/include/libpq
diff options
context:
space:
mode:
authorPeter Eisentraut2009-12-16 23:05:00 +0000
committerPeter Eisentraut2009-12-16 23:05:00 +0000
commitd6de43099ac0bddb4b1da40088487616da892164 (patch)
tree2705bf475ff118af9b6c25484db0945d731bc18d /src/include/libpq
parentb63b967a7e68c0f157958406aaa78285ba6e5dd7 (diff)
Don't unblock SIGQUIT in the SIGQUIT handler
This was possibly linked to a deadlock-like situation in glibc syslog code invoked by the ereport call in quickdie(). In any case, a signal handler should not unblock its own signal unless there is a specific reason to.
Diffstat (limited to 'src/include/libpq')
-rw-r--r--src/include/libpq/pqsignal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/libpq/pqsignal.h b/src/include/libpq/pqsignal.h
index 6061898b36b..90237f947a4 100644
--- a/src/include/libpq/pqsignal.h
+++ b/src/include/libpq/pqsignal.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/libpq/pqsignal.h,v 1.35 2009/12/16 22:55:34 petere Exp $
+ * $PostgreSQL: pgsql/src/include/libpq/pqsignal.h,v 1.36 2009/12/16 23:05:00 petere Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
@@ -38,6 +38,7 @@ extern int UnBlockSig,
int pqsigsetmask(int mask);
#endif
+#define sigaddset(set, signum) (*(set) |= (sigmask(signum)))
#define sigdelset(set, signum) (*(set) &= ~(sigmask(signum)))
#endif /* not HAVE_SIGPROCMASK */