*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.38 2004/12/31 21:59:50 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.39 2005/02/14 23:02:03 momjian Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
pqinitmask(void)
{
#ifdef HAVE_SIGPROCMASK
+
sigemptyset(&UnBlockSig);
+
+ /* First set all signals, then clear some. */
sigfillset(&BlockSig);
sigfillset(&AuthBlockSig);
sigdelset(&AuthBlockSig, SIGALRM);
#endif
#else
+ /* Set the signals we want. */
UnBlockSig = 0;
BlockSig = sigmask(SIGHUP) | sigmask(SIGQUIT) |
sigmask(SIGTERM) | sigmask(SIGALRM) |