[pgpool-committers: 3684] 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
------
V3_5_STABLE

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

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



More information about the pgpool-committers mailing list