[pgpool-committers: 3407] pgpool: Fixing the error messages when the socket operation fails
Muhammad Usama
m.usama at gmail.com
Thu Aug 18 03:24:34 JST 2016
Fixing the error messages when the socket operation fails
When some socket operation fails, we issue close socket before throwing an
error which causes the errno value to be overwritten and consequently the error
log does not print the correct failure reason.
The solution is to save the errno before closing the socket and use the saved
value to print error description
Branch
------
V3_5_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=c9b1f71765ca7a51efea51b6275165a8df659e71
Modified Files
--------------
src/main/pgpool_main.c | 15 ++++++++++-----
src/watchdog/watchdog.c | 43 ++++++++++++++++++++++++-------------------
2 files changed, 34 insertions(+), 24 deletions(-)
More information about the pgpool-committers
mailing list