Delete any pre-existing watchdog command socket file at startup
authorMuhammad Usama <m.usama@highgo.ca>
Tue, 8 Dec 2020 10:00:11 +0000 (15:00 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Tue, 8 Dec 2020 10:22:06 +0000 (15:22 +0500)
commit0130b310c2f7a817f4f8065645cc7c7435400335
tree8e12659bc2899268cab899f66a3d8f2a6d49fb22
parent829cf822e62cfa39b6de59cdf0300a729b6efc71
Delete any pre-existing watchdog command socket file at startup

Abnormal termination of Pgpool leaves behind the dangling socket files
and prevent Pgpool-II from starting up.
The solution is to delete any pre-existing watchdog command socket
file before binding a watchdog command socket.

Patch provided by Masaya Kawamoto
src/watchdog/watchdog.c