OSDN Git Service

Make startup process respond to signals to cancel waiting on latch.
[pg-rex/syncrep.git] / src / backend / access / transam / xlog.c
index 74057d1..b6a2fdd 100644 (file)
@@ -9195,6 +9195,7 @@ static void
 StartupProcSigHupHandler(SIGNAL_ARGS)
 {
        got_SIGHUP = true;
+       WakeupRecovery();
 }
 
 /* SIGTERM: set flag to abort redo and exit */
@@ -9205,6 +9206,7 @@ StartupProcShutdownHandler(SIGNAL_ARGS)
                proc_exit(1);
        else
                shutdown_requested = true;
+       WakeupRecovery();
 }
 
 /* Handle SIGHUP and SIGTERM signals of startup process */