Commit 3bbcc5c9 authored by Simon Riggs's avatar Simon Riggs

Make startup process respond to signals to cancel waiting on latch.

A tidy up for recently committed changes to startup latch.

Fujii Masao
parent 45cd9199
...@@ -9174,6 +9174,7 @@ static void ...@@ -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) ...@@ -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 */
......
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