[pgpool-committers: 5805] pgpool: Fix health check process is not shutting down in certain cases.
Tatsuo Ishii
ishii at sraoss.co.jp
Tue Jun 11 14:09:32 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
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=d0b308ac4643dee3f00395d62a8ce6c3d74a9c5f
Modified Files
--------------
src/main/pgpool_main.c | 27 +++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)
More information about the pgpool-committers
mailing list