File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 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
15671571reaper (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 */
You can’t perform that action at this time.
0 commit comments