[pgpool-committers: 968] pgpool: Fix wd_create_send_socket() not to execute select() before conn

Yugo Nagata nagata at sraoss.co.jp
Mon May 13 08:32:35 JST 2013


Fix wd_create_send_socket() not to execute select() before connect().

How select() works on an unconnected socket is undefined, and differs
between platform. This returns 2 on Linux and it is eventually harmless.
However, this returns 0 on Solaris and it is indistinguishable from
timeout.

Branch
------
V3_2_STABLE

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

Modified Files
--------------
watchdog/wd_packet.c |   49 +++----------------------------------------------
1 files changed, 3 insertions(+), 46 deletions(-)



More information about the pgpool-committers mailing list