[pgpool-committers: 2459] pgpool: Fix to set SIGCHLD to SIG_DFL instead of SIG_IGN in watchdog pr
Yugo Nagata
nagata at sraoss.co.jp
Fri Feb 20 16:51:18 JST 2015
Fix to set SIGCHLD to SIG_DFL instead of SIG_IGN in watchdog processes
When using waitpid, it isn't necessary to set SIGCHLD SIG_IGN. Rather,
waitpid returns ECHLD and WIFEXITED could be zero even when the child
process exit successfully. Due to this, it was recognized that ping
exited abnormally in error.
In addition, signal functions are replaced to pool_singal.
Branch
------
V3_2_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=5220ad389463e7346e44a378d0c7c1504499d9ce
Modified Files
--------------
watchdog/watchdog.c | 13 ++++++-------
watchdog/wd_child.c | 19 +++++++++----------
watchdog/wd_if.c | 12 +++++++++++-
watchdog/wd_lifecheck.c | 1 -
4 files changed, 26 insertions(+), 19 deletions(-)
More information about the pgpool-committers
mailing list