[pgpool-committers: 3406] 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
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=37e376ed287406d6a5d5c71a690da68ea4213d73
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