[pgpool-committers: 9568] pgpool: Fix race condition with pgpool main and pcp child process.

Tatsuo Ishii ishii at sraoss.co.jp
Mon Sep 18 13:22:37 JST 2023


Fix race condition with pgpool main and pcp child process.

When pcp child process is forked off, pgpool main process unblock all
signals.  This could lead to a race condition if a signal is sent to
the pcp process before it sets up signal handlers. Fix is, do not
unblock signals until the signal handlers are set up.

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

Branch
------
master

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

Modified Files
--------------
src/main/pgpool_main.c  | 1 -
src/pcp_con/pcp_child.c | 7 ++++++-
2 files changed, 6 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list