Improve documentation of signal usage for HAVE_SIGPROCMASK and

non-HAVE_SIGPROCMASK cases in pqinitmask().
This commit is contained in:
Bruce Momjian 2005-02-14 23:02:03 +00:00
parent b25bb4fd44
commit ad4f06aeb2
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@
*
*
* 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
@ -75,7 +75,10 @@ void
pqinitmask(void)
{
#ifdef HAVE_SIGPROCMASK
sigemptyset(&UnBlockSig);
/* First set all signals, then clear some. */
sigfillset(&BlockSig);
sigfillset(&AuthBlockSig);
@ -126,6 +129,7 @@ pqinitmask(void)
sigdelset(&AuthBlockSig, SIGALRM);
#endif
#else
/* Set the signals we want. */
UnBlockSig = 0;
BlockSig = sigmask(SIGHUP) | sigmask(SIGQUIT) |
sigmask(SIGTERM) | sigmask(SIGALRM) |