[pgpool-committers: 8504] pgpool: Allow shutdown interrupt while processing SIGCHILD in pgpool ma

Tatsuo Ishii ishii at sraoss.co.jp
Sat Mar 19 18:31:27 JST 2022


Allow shutdown interrupt while processing SIGCHILD in pgpool main.

Currently most signals are blocked in pgpool main loop. In some
situations the SIGCHLD handler (reaper()) takes long time or blocked
in wait system call. I suspect that this could cause occasional
timeout in some regression tests. So allow interrupts while executing
reaper(). Also re-implement CHECK_REQUEST macro as a function. There's
no point to implement CHECK_REQUEST using macro.

Branch
------
master

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

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



More information about the pgpool-committers mailing list