Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 01160a3

Browse files
author
Amit Kapila
committed
Fix signal handler setup for SIGHUP in the apply launcher process.
Commit 1e53fe0 has unified the usage of the config-file reload flag by using the same signal handler function for the SIGHUP signal at many places in the code. By mistake, it used the wrong SIGNAL in apply launcher process for the SIGHUP signal handler function. Author: Bharath Rupireddy Reviewed-by: Dilip Kumar Backpatch-through: 13, where it was introduced Discussion: https://postgr.es/m/CALj2ACVzHCRnS20bOiEHaLtP5PVBENZQn4khdsSJQgOv_GM-LA@mail.gmail.com
1 parent cdc7169 commit 01160a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/logical/launcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ ApplyLauncherMain(Datum main_arg)
956956
LogicalRepCtx->launcher_pid = MyProcPid;
957957

958958
/* Establish signal handlers. */
959-
pqsignal(SIGTERM, SignalHandlerForConfigReload);
959+
pqsignal(SIGHUP, SignalHandlerForConfigReload);
960960
pqsignal(SIGTERM, die);
961961
BackgroundWorkerUnblockSignals();
962962

0 commit comments

Comments
 (0)