[pgpool-committers: 5806] pgpool: Fix health check process is not shutting down in certain cases.

Tatsuo Ishii ishii at sraoss.co.jp
Tue Jun 11 14:10:28 JST 2019


Fix health check process is not shutting down in certain cases.

When watchdog detects fatal events, including not reaching to
trusted_servers, watchdog suicides with POOL_EXIT_FATAL exit status
code. In this case the parent of watchdog, the pgpool main process's
SIGCHILD handler reaper() exits and on_exit call back calls
system_will_go_down(), which in turn calls terminate_all_children().
Problem is, terminate_all_children() forgot to kill health check
process. This commit fixes that.

Also there are some not well behaving codings are enhanced.

Back patched to 3.7, when the bug was introduced.

Branch
------
V4_0_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=361f4ec77e4e4177b2aeb8fd1b13eae24689771b

Modified Files
--------------
src/main/pgpool_main.c | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)



More information about the pgpool-committers mailing list