Skip to content

Commit 823ab92

Browse files
committed
Add missing PG_SETMASK(&BlockSig) to SIGHUP_handler().
1 parent 16ea152 commit 823ab92

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
int save_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
int save_errno = errno;
1570-
15711574
#ifdef HAVE_WAITPID
15721575
int status; /* backend exit status */
1573-
15741576
#else
15751577
union wait status; /* backend exit status */
1576-
15771578
#endif
15781579
int exitstatus;
15791580
int pid; /* process id of dead backend */

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