[pgpool-committers: 3755] 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_6_STABLE

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

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



More information about the pgpool-committers mailing list