Fix watchdog receive socket creation without IPv6.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 27 May 2025 10:15:54 +0000 (19:15 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 27 May 2025 10:15:54 +0000 (19:15 +0900)
commit7540d06245c7e35fd8c9e746454992bbedea2182
tree6e2bd5f55474de907befb299569e8fbd00c978dd
parent66fcd561d74c8f00326bad94300053bd7ea13566
Fix watchdog receive socket creation without IPv6.

When IPv6 network is not available, it was possible that watchdog
process won't start.  Previously wd_create_recv_socket() issued
elog(ERROR) if creation or handling IPv6 socket failed. Unfortunately
at the time when wd_create_recv_socket() is called, the exception
stack is not established, and elog happily converts ERROR to FATAL,
which causes exiting watchdog process, thus exiting pgpool process.

To fix this, the elog(ERROR) calls are changed to elog(LOG).

Reported-by: Bo Peng (pengbo@sraoss.co.jp)
Discussion: https://github.com/pgpool/pgpool2/issues/99
Backpatch-through: v4.6
src/watchdog/watchdog.c