[pgpool-committers: 2346] 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_3_STABLE

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

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



More information about the pgpool-committers mailing list