[pgpool-committers: 2351] pgpool: 0000119: Signal might be sent to pid=1 (init process) in send_f

Muhammad Usama m.usama at gmail.com
Sat Dec 13 03:33:04 JST 2014


0000119: Signal might be sent to pid=1 (init process) in send_failback_request()

This is more of a guard against a situation where a crash of the pgpool main
process can make the child processes to send the signal to system's init process
A new wrapper function pool_signal_parent() is added for delivering the signal
to pgpool main process from children, The function checks the PPID of process
and compares it with the parent PID saved at the pgpool startup, And if the bids
differ that means the parent pgpool parent process is dead and in that case
the child commits the suicide.

Branch
------
V3_4_STABLE

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

Modified Files
--------------
src/include/utils/pool_signal.h   |    2 +-
src/main/pgpool_main.c            |    2 +-
src/pcp_con/pcp_child.c           |    6 +++---
src/pcp_con/recovery.c            |    2 +-
src/protocol/pool_process_query.c |    2 +-
src/utils/pool_signal.c           |   25 +++++++++++++++++++++++++
6 files changed, 32 insertions(+), 7 deletions(-)



More information about the pgpool-committers mailing list