*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 9174,9179 **** static void
--- 9174,9180 ----
  StartupProcSigHupHandler(SIGNAL_ARGS)
  {
  	got_SIGHUP = true;
+ 	WakeupRecovery();
  }
  
  /* SIGTERM: set flag to abort redo and exit */
***************
*** 9184,9189 **** StartupProcShutdownHandler(SIGNAL_ARGS)
--- 9185,9191 ----
  		proc_exit(1);
  	else
  		shutdown_requested = true;
+ 	WakeupRecovery();
  }
  
  /* Handle SIGHUP and SIGTERM signals of startup process */
