Removing strerror() call from ereports.
authorMuhammad Usama <m.usama@highgo.ca>
Tue, 24 Nov 2020 16:39:26 +0000 (21:39 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Tue, 24 Nov 2020 17:52:36 +0000 (22:52 +0500)
commitdfe27f51852225077af056a37acab8345f9977ed
treeb36d48496338d253ac85240d4bc57c694d50a08f
parent6b56f23d921b384d3102be9ffc49fc0cbad766bf
Removing strerror() call from ereports.

Call to ereport() resets the errno value and using the "strerror(errno)"
emmits the wrong error message. The right way is to use
%m format specifier instead.
 
21 files changed:
src/auth/pool_passwd.c
src/main/health_check.c
src/main/main.c
src/main/pgpool_logger.c
src/main/pgpool_main.c
src/pcp_con/pcp_child.c
src/pcp_con/pcp_worker.c
src/protocol/child.c
src/protocol/pool_connection_pool.c
src/protocol/pool_process_query.c
src/query_cache/pool_memqcache.c
src/utils/pool_sema.c
src/utils/pool_shmem.c
src/utils/pool_stream.c
src/utils/socket_stream.c
src/watchdog/watchdog.c
src/watchdog/wd_heartbeat.c
src/watchdog/wd_if.c
src/watchdog/wd_ipc_conn.c
src/watchdog/wd_lifecheck.c
src/watchdog/wd_ping.c