[pgpool-committers: 2353] 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
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=4faccee16d33fb0a359b179f6734cf95773001f9
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