[pgpool-committers: 587] pgpool: Fix too aggressively kill other processes when pgpool shuts dow

Tatsuo Ishii ishii at postgresql.org
Mon Aug 20 11:54:37 JST 2012


Fix too aggressively kill other processes when pgpool shuts down.
watchdog process calls kill(0,SIG) to kill all processes related to
watchdog.  Unfortunately this will kill not only watchdog related
processes but parent pgpool and even httpd in case when pgpool was
invoked from pgpoolAdmin because they are in the same process
group. So for now, fix is removing call to the kill() and setpgid()
because setpgid() does nothing useful.

In the future, we should call setsid() to establish new process group
in any case, I think.

Branch
------
V3_2_STABLE

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

Modified Files
--------------
watchdog/watchdog.c |    3 ---
watchdog/wd_child.c |    3 ---
2 files changed, 0 insertions(+), 6 deletions(-)



More information about the pgpool-committers mailing list