Skip to content

Commit ad4f06a

Browse files
committed
Improve documentation of signal usage for HAVE_SIGPROCMASK and
non-HAVE_SIGPROCMASK cases in pqinitmask().
1 parent b25bb4f commit ad4f06a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/libpq/pqsignal.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.38 2004/12/31 21:59:50 pgsql Exp $
12+
* $PostgreSQL: pgsql/src/backend/libpq/pqsignal.c,v 1.39 2005/02/14 23:02:03 momjian Exp $
1313
*
1414
* NOTES
1515
* This shouldn't be in libpq, but the monitor and some other
@@ -75,7 +75,10 @@ void
7575
pqinitmask(void)
7676
{
7777
#ifdef HAVE_SIGPROCMASK
78+
7879
sigemptyset(&UnBlockSig);
80+
81+
/* First set all signals, then clear some. */
7982
sigfillset(&BlockSig);
8083
sigfillset(&AuthBlockSig);
8184

@@ -126,6 +129,7 @@ pqinitmask(void)
126129
sigdelset(&AuthBlockSig, SIGALRM);
127130
#endif
128131
#else
132+
/* Set the signals we want. */
129133
UnBlockSig = 0;
130134
BlockSig = sigmask(SIGHUP) | sigmask(SIGQUIT) |
131135
sigmask(SIGTERM) | sigmask(SIGALRM) |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy