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

Commit823ab92

Browse files
committed
Add missing PG_SETMASK(&BlockSig) to SIGHUP_handler().
1 parent16ea152 commit823ab92

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
*
3030
* IDENTIFICATION
31-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.219 2001/06/12 22:54:05 tgl Exp $
31+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.220 2001/06/14 19:59:24 tgl Exp $
3232
*
3333
* NOTES
3434
*
@@ -1408,10 +1408,14 @@ SIGHUP_handler(SIGNAL_ARGS)
14081408
{
14091409
intsave_errno=errno;
14101410

1411-
if (Shutdown>SmartShutdown)
1412-
return;
1413-
got_SIGHUP= true;
1414-
SignalChildren(SIGHUP);
1411+
PG_SETMASK(&BlockSig);
1412+
1413+
if (Shutdown <=SmartShutdown)
1414+
{
1415+
got_SIGHUP= true;
1416+
SignalChildren(SIGHUP);
1417+
}
1418+
14151419
errno=save_errno;
14161420
}
14171421

@@ -1567,13 +1571,10 @@ static void
15671571
reaper(SIGNAL_ARGS)
15681572
{
15691573
intsave_errno=errno;
1570-
15711574
#ifdefHAVE_WAITPID
15721575
intstatus;/* backend exit status */
1573-
15741576
#else
15751577
unionwaitstatus;/* backend exit status */
1576-
15771578
#endif
15781579
intexitstatus;
15791580
intpid;/* process id of dead backend */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp