[pgpool-committers: 3685] 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_6_STABLE

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

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



More information about the pgpool-committers mailing list