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

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

Modified Files
--------------
watchdog/watchdog.c     |   13 ++++++-------
watchdog/wd_child.c     |   19 +++++++++----------
watchdog/wd_heartbeat.c |   37 ++++++++++++++++++-------------------
watchdog/wd_if.c        |   11 ++++-------
watchdog/wd_lifecheck.c |    1 -
watchdog/wd_ping.c      |    2 +-
6 files changed, 38 insertions(+), 45 deletions(-)



More information about the pgpool-committers mailing list