Skip to content

Commit 3bbcc5c

Browse files
Make startup process respond to signals to cancel waiting on latch.
A tidy up for recently committed changes to startup latch. Fujii Masao
1 parent 45cd919 commit 3bbcc5c

File tree

1 file changed

+2
-0
lines changed
  • src/backend/access/transam

1 file changed

+2
-0
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9174,6 +9174,7 @@ static void
91749174
StartupProcSigHupHandler(SIGNAL_ARGS)
91759175
{
91769176
got_SIGHUP = true;
9177+
WakeupRecovery();
91779178
}
91789179

91799180
/* SIGTERM: set flag to abort redo and exit */
@@ -9184,6 +9185,7 @@ StartupProcShutdownHandler(SIGNAL_ARGS)
91849185
proc_exit(1);
91859186
else
91869187
shutdown_requested = true;
9188+
WakeupRecovery();
91879189
}
91889190

91899191
/* Handle SIGHUP and SIGTERM signals of startup process */

0 commit comments

Comments
 (0)