*
*
* 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
*
{
int save_errno = errno;
- if (Shutdown > SmartShutdown)
- return;
- got_SIGHUP = true;
- SignalChildren(SIGHUP);
+ PG_SETMASK(&BlockSig);
+
+ if (Shutdown <= SmartShutdown)
+ {
+ got_SIGHUP = true;
+ SignalChildren(SIGHUP);
+ }
+
errno = save_errno;
}
reaper(SIGNAL_ARGS)
{
int save_errno = errno;
-
#ifdef HAVE_WAITPID
int status; /* backend exit status */
-
#else
union wait status; /* backend exit status */
-
#endif
int exitstatus;
int pid; /* process id of dead backend */