[pgpool-committers: 3753] pgpool: Fix for 0000249: watchdog sometimes fails de-escalation.

Muhammad Usama m.usama at gmail.com
Thu Jan 5 00:14:43 JST 2017


Fix for 0000249: watchdog sometimes fails de-escalation.

The logic in pgpool-II main process exit_handler and terminate_all_childrens was
not making sure that pgpool-II main process should only exit after all its
children have exited. And the problem occurs when the main process shutdowns
itself before watchdog and de-escalation child processes.

The solution is to use the waitpid() system call without WNOHANG option.

Branch
------
V3_4_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=948690916880ac5a8550b4e120725f8cd3e49c5c

Modified Files
--------------
src/main/pgpool_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list