*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.16 2000/06/28 03:31:41 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.17 2000/06/29 02:17:42 tgl Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
#ifdef HAVE_SIGPROCMASK
sigemptyset(&UnBlockSig);
sigfillset(&BlockSig);
+ /*
+ * Unmark those signals that should never be blocked.
+ * Some of these signal names don't exist on all platforms. Most do,
+ * but might as well ifdef them all for consistency...
+ */
+#ifdef SIGTRAP
+ sigdelset(&BlockSig, SIGTRAP);
+#endif
+#ifdef SIGABRT
sigdelset(&BlockSig, SIGABRT);
+#endif
+#ifdef SIGILL
sigdelset(&BlockSig, SIGILL);
+#endif
+#ifdef SIGFPE
+ sigdelset(&BlockSig, SIGFPE);
+#endif
+#ifdef SIGSEGV
sigdelset(&BlockSig, SIGSEGV);
+#endif
+#ifdef SIGBUS
sigdelset(&BlockSig, SIGBUS);
- sigdelset(&BlockSig, SIGTRAP);
- sigdelset(&BlockSig, SIGCONT);
+#endif
+#ifdef SIGSYS
sigdelset(&BlockSig, SIGSYS);
+#endif
+#ifdef SIGCONT
+ sigdelset(&BlockSig, SIGCONT);
+#endif
#else
UnBlockSig = 0;
BlockSig = sigmask(SIGHUP) | sigmask(SIGQUIT) |