]> granicus.if.org Git - postgresql/commitdiff
Make startup process respond to signals to cancel waiting on latch.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:15:26 +0000 (19:15 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 14 Oct 2010 18:15:26 +0000 (19:15 +0100)
A tidy up for recently committed changes to startup latch.

Fujii Masao

src/backend/access/transam/xlog.c

index 50e9ca3da1231268a4cf7149cc9c134e517c2e48..22fd578056773462411c8294275706c8380d3690 100644 (file)
@@ -9174,6 +9174,7 @@ static void
 StartupProcSigHupHandler(SIGNAL_ARGS)
 {
        got_SIGHUP = true;
+       WakeupRecovery();
 }
 
 /* SIGTERM: set flag to abort redo and exit */
@@ -9184,6 +9185,7 @@ StartupProcShutdownHandler(SIGNAL_ARGS)
                proc_exit(1);
        else
                shutdown_requested = true;
+       WakeupRecovery();
 }
 
 /* Handle SIGHUP and SIGTERM signals of startup process */