mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
Improve documentation of signal usage for HAVE_SIGPROCMASK and
non-HAVE_SIGPROCMASK cases in pqinitmask().
This commit is contained in:
parent
b25bb4fd44
commit
ad4f06aeb2
@ -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) |
|
||||
|
Loading…
Reference in New Issue
Block a user