[pgpool-committers: 9567] pgpool: Fix hung up in pcp_exit_handler of pcp child main.

Tatsuo Ishii ishii at sraoss.co.jp
Sun Sep 17 21:07:51 JST 2023


Fix hung up in pcp_exit_handler of pcp child main.

pcp_exit_handler is responsible for waiting for exiting pcp child
process. I suspect it is hung up in the wait loop in regression test
001.

https://www.pgpool.net/pipermail/pgpool-hackers/2023-September/004397.html

So I changed it so that it uses waitpid(2) with WNOHANG option.

Branch
------
master

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

Modified Files
--------------
src/pcp_con/pcp_child.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)



More information about the pgpool-committers mailing list