[pgpool-committers: 2345] pgpool: Fix ill signal befavior of SIGCHLD in exec_ifconfig().

Tatsuo Ishii ishii at postgresql.org
Sat Dec 6 23:15:44 JST 2014


Fix ill signal befavior of SIGCHLD in exec_ifconfig().

For some reason signal(SIGCHLD, SIG_IGN) was set *and* tries to wait
child process which always fails because SIGCHLD is never
delivered. Due to this "ifconfig up" fails when switching to watchdog
master. Fix is, before calling fork(), do "signal(SIGCHLD,
SIG_DFL)". See "[pgpool-general: 3310] Watchdog - ifconfig up failed."
for more details.

Branch
------
V3_4_STABLE

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

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



More information about the pgpool-committers mailing list