[pgpool-committers: 2907] pgpool: Fix to use saved errno for erreport instead of the direct value

Yugo Nagata nagata at sraoss.co.jp
Mon Jan 4 15:01:58 JST 2016


Fix to use saved errno for erreport instead of the direct value

Some system calls are called in errmsg() and errhint(), and
it isn't safe to pass errno directly as an argument. This caused
the confusable log message as below.

 DETAIL: connect() reports failure "Success"

Branch
------
V3_4_STABLE

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

Modified Files
--------------
src/watchdog/wd_packet.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list