[pgpool-committers: 3750] 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_2_STABLE

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

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



More information about the pgpool-committers mailing list