From: Yugo Nagata Date: Mon, 17 Jun 2013 07:28:25 +0000 (+0900) Subject: Fix not to bind sockets to network devices when pgpool-II doesn't has X-Git-Tag: V3_3_0_BETA1~10 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=09a6e257c8cf0210408cd1e0f72ad170c9d977e1;p=pgpool2.git Fix not to bind sockets to network devices when pgpool-II doesn't has root privilege. SO_BINDTODEVICE socket option is used for binding sockets to network devices and requires root privilege. However, this is not essential for the lifecheck mechanism itself, so we use this function only when pgpool-II has root privilege. If pgpool-II has root privilege, log message says like; wd_create_hb_recv_socket: bind receive socket to device :eth0 otherwise, is_usable_bindtodevice: setsockopt(SO_BINDTODEVICE) requires root privilege wd_create_hb_recv_socket: couldn't bind receive socket to device :eth0 --- diff --git a/doc/pgpool-en.html b/doc/pgpool-en.html index 82e81e79e..aa149685e 100644 --- a/doc/pgpool-en.html +++ b/doc/pgpool-en.html @@ -3843,11 +3843,11 @@ watchdog adds the following features to pgpool-II.