[pgpool-committers: 1088] pgpool: Fix pgpool -m f stop" hang.

Tatsuo Ishii ishii at postgresql.org
Wed Jun 26 18:22:54 JST 2013

Fix pgpool -m f stop" hang.

This is caused by unmanaged pgpool children remaining.  This could
happen if multiple PostgreSQL are going down (or even starting pgpool,
without starting PostgreSQL can easily trigger this).  Child calls
degenerate_backend_set() and it tries to aquire semaphore to write a
failover request. In this case the signal mask is set as well, thus
signals are never received. To fix this, kill pgpool children before
forking them.



Modified Files
main.c |   13 +++++++++++++
1 file changed, 13 insertions(+)

More information about the pgpool-committers mailing list