Make startup process respond to signals to cancel waiting on latch.
A tidy up for recently committed changes to startup latch. Fujii Masao
This commit is contained in:
parent
45cd9199c2
commit
3bbcc5c999
|
@ -9174,6 +9174,7 @@ static void
|
||||||
StartupProcSigHupHandler(SIGNAL_ARGS)
|
StartupProcSigHupHandler(SIGNAL_ARGS)
|
||||||
{
|
{
|
||||||
got_SIGHUP = true;
|
got_SIGHUP = true;
|
||||||
|
WakeupRecovery();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SIGTERM: set flag to abort redo and exit */
|
/* SIGTERM: set flag to abort redo and exit */
|
||||||
|
@ -9184,6 +9185,7 @@ StartupProcShutdownHandler(SIGNAL_ARGS)
|
||||||
proc_exit(1);
|
proc_exit(1);
|
||||||
else
|
else
|
||||||
shutdown_requested = true;
|
shutdown_requested = true;
|
||||||
|
WakeupRecovery();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle SIGHUP and SIGTERM signals of startup process */
|
/* Handle SIGHUP and SIGTERM signals of startup process */
|
||||||
|
|
Loading…
Reference in New Issue