Commit d73e0410 authored by Bruce Momjian's avatar Bruce Momjian

Improve documentation of signal usage for HAVE_SIGPROCMASK and

non-HAVE_SIGPROCMASK cases in pqinitmask().
parent ad4f06ae
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.39 2005/02/14 23:02:03 momjian Exp $ * $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.40 2005/02/14 23:02:35 momjian Exp $
* *
* NOTES * NOTES
* This shouldn't be in libpq, but the monitor and some other * This shouldn't be in libpq, but the monitor and some other
...@@ -119,20 +119,24 @@ pqinitmask(void) ...@@ -119,20 +119,24 @@ pqinitmask(void)
sigdelset(&BlockSig, SIGCONT); sigdelset(&BlockSig, SIGCONT);
sigdelset(&AuthBlockSig, SIGCONT); sigdelset(&AuthBlockSig, SIGCONT);
#endif #endif
#ifdef SIGTERM
sigdelset(&AuthBlockSig, SIGTERM); /* Signals unique to Auth */
#endif
#ifdef SIGQUIT #ifdef SIGQUIT
sigdelset(&AuthBlockSig, SIGQUIT); sigdelset(&AuthBlockSig, SIGQUIT);
#endif #endif
#ifdef SIGTERM
sigdelset(&AuthBlockSig, SIGTERM);
#endif
#ifdef SIGALRM #ifdef SIGALRM
sigdelset(&AuthBlockSig, SIGALRM); sigdelset(&AuthBlockSig, SIGALRM);
#endif #endif
#else #else
/* Set the signals we want. */ /* Set the signals we want. */
UnBlockSig = 0; UnBlockSig = 0;
BlockSig = sigmask(SIGHUP) | sigmask(SIGQUIT) | BlockSig = sigmask(SIGQUIT) |
sigmask(SIGTERM) | sigmask(SIGALRM) | sigmask(SIGTERM) | sigmask(SIGALRM) |
/* common signals between two */
sigmask(SIGHUP) |
sigmask(SIGINT) | sigmask(SIGUSR1) | sigmask(SIGINT) | sigmask(SIGUSR1) |
sigmask(SIGUSR2) | sigmask(SIGCHLD) | sigmask(SIGUSR2) | sigmask(SIGCHLD) |
sigmask(SIGWINCH) | sigmask(SIGFPE); sigmask(SIGWINCH) | sigmask(SIGFPE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment