{
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();
/*
proc_exit(status);
}
+/*
+ * common code used in sigusr1_handler() and reaper() to handle
+ * recovery-related signals from startup process
+ */
static void
CheckRecoverySignals(void)
{