From 3bbcc5c9992f21fa735f438f5ff5f3a81efea39c Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Thu, 14 Oct 2010 19:15:26 +0100 Subject: [PATCH] Make startup process respond to signals to cancel waiting on latch. A tidy up for recently committed changes to startup latch. Fujii Masao --- src/backend/access/transam/xlog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 50e9ca3da1..22fd578056 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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 */