pgpool2.git / summary / log / commit / refs
commit dd0097dc36205802aa60eccc56302674eb83922a
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Fri Jul 05 05:32:43 2019 +0000
Allow health check process to reload pgpool.conf.
When separate health check process was introduced, we forgot to send
signal to the health check process when pgpool.conf reload is
requested.
src/main/pgpool_main.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/main/pgpool_main.c b/src/main/pgpool_main.c
index cd2576329..1e3472a74 100644
--- a/src/main/pgpool_main.c
+++ b/src/main/pgpool_main.c
@@ -2883,6 +2883,16 @@ kill_all_children(int sig)
/* make PCP process reload as well */
if (sig == SIGHUP && pcp_pid > 0)
kill(pcp_pid, sig);
+
+ /* make health check process reload as well */
+ if (sig == SIGHUP)
+ {
+ for (i = 0; i < NUM_BACKENDS; i++)
+ {
+ if (health_check_pids[i] > 0)
+ kill(health_check_pids[i], sig);
+ }
+ }
}
/*
[parent: a8703ef67755]