Commit 823ab922 authored by Tom Lane's avatar Tom Lane

Add missing PG_SETMASK(&BlockSig) to SIGHUP_handler().

parent 16ea152b
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.219 2001/06/12 22:54:05 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.220 2001/06/14 19:59:24 tgl Exp $
* *
* NOTES * NOTES
* *
...@@ -1408,10 +1408,14 @@ SIGHUP_handler(SIGNAL_ARGS) ...@@ -1408,10 +1408,14 @@ SIGHUP_handler(SIGNAL_ARGS)
{ {
int save_errno = errno; int save_errno = errno;
if (Shutdown > SmartShutdown) PG_SETMASK(&BlockSig);
return;
if (Shutdown <= SmartShutdown)
{
got_SIGHUP = true; got_SIGHUP = true;
SignalChildren(SIGHUP); SignalChildren(SIGHUP);
}
errno = save_errno; errno = save_errno;
} }
...@@ -1567,13 +1571,10 @@ static void ...@@ -1567,13 +1571,10 @@ static void
reaper(SIGNAL_ARGS) reaper(SIGNAL_ARGS)
{ {
int save_errno = errno; int save_errno = errno;
#ifdef HAVE_WAITPID #ifdef HAVE_WAITPID
int status; /* backend exit status */ int status; /* backend exit status */
#else #else
union wait status; /* backend exit status */ union wait status; /* backend exit status */
#endif #endif
int exitstatus; int exitstatus;
int pid; /* process id of dead backend */ int pid; /* process id of dead backend */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment