From 5bf58cd6be9f00ec3e8efba9ef6ed96752813c3b Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 30 Jan 2009 16:43:47 +0200 Subject: [PATCH] Comment enhancements --- src/backend/postmaster/postmaster.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index fd1d5a4431..15fc7ad3d6 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2155,6 +2155,13 @@ reaper(SIGNAL_ARGS) { StartupPID = 0; + /* + * Check if we've received a signal from the startup process + * first. This can change pmState. If the startup process sends + * a signal, and exits immediately after that, we might not have + * processed the signal yet, and we need to know if it completed + * recovery before exiting. + */ CheckRecoverySignals(); /* @@ -3985,6 +3992,10 @@ ExitPostmaster(int status) proc_exit(status); } +/* + * common code used in sigusr1_handler() and reaper() to handle + * recovery-related signals from startup process + */ static void CheckRecoverySignals(void) { -- 2.39.5