mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 14:01:18 +02:00
Small cleanup.
This commit is contained in:
parent
4793740367
commit
4040fcfa78
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.121 1999/10/06 21:58:03 vadim Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.122 1999/10/06 22:44:25 vadim Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -1232,12 +1232,16 @@ pmdie(SIGNAL_ARGS)
|
|||||||
return;
|
return;
|
||||||
if (DLGetHead(BackendList)) /* let reaper() handle this */
|
if (DLGetHead(BackendList)) /* let reaper() handle this */
|
||||||
{
|
{
|
||||||
|
Shutdown = FastShutdown;
|
||||||
if (!FatalError)
|
if (!FatalError)
|
||||||
SignalChildren(SIGTERM);
|
SignalChildren(SIGTERM);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Shutdown > NoShutdown)
|
if (Shutdown > NoShutdown)
|
||||||
|
{
|
||||||
|
Shutdown = FastShutdown;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
Shutdown = FastShutdown;
|
Shutdown = FastShutdown;
|
||||||
/*
|
/*
|
||||||
* No children left. Shutdown data base system.
|
* No children left. Shutdown data base system.
|
||||||
@ -1247,7 +1251,7 @@ pmdie(SIGNAL_ARGS)
|
|||||||
if (ShutdownPID > 0)
|
if (ShutdownPID > 0)
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
ShutdownPID = ShutdownDataBase(); /* flag for reaper() */
|
ShutdownPID = ShutdownDataBase();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case SIGQUIT:
|
case SIGQUIT:
|
||||||
|
Loading…
Reference in New Issue
Block a user