Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad4f06a

Browse files
committed
Improve documentation of signal usage for HAVE_SIGPROCMASK and
non-HAVE_SIGPROCMASK cases in pqinitmask().
1 parentb25bb4f commitad4f06a

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
#ifdefHAVE_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)

[8]ページ先頭

©2009-2025 Movatter.jp