[pgpool-committers: 3683] pgpool: Fix a race condition in a signal handler per bug 265.

Tatsuo Ishii ishii at postgresql.org
Tue Dec 6 13:38:18 JST 2016


Fix a race condition in a signal handler per bug 265.

In child.c there's signal handler which calls elog. Since the signal
handler is not blocked against other signals while processing, deadlock
could occur in the system calls in the pgpool shutdown sequence. To
fix the problem, now the signal handler is blocked by using
POOL_SETMASK.

Ideally we should avoid calling elog in signal handlers though.

Branch
------
master

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

Modified Files
--------------
src/protocol/child.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list