pgpool2.git / summary / log / commit / refs
commit f510c22a7a74fee2a7ad5d553f366f444c4115c1
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Sat Feb 27 04:21:12 2010 +0000
Fix connect_inet_domain_socket_by_port() so that it print out error
message by using hstrerror(), rather than strerror().
pool_connection_pool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pool_connection_pool.c b/pool_connection_pool.c
index 3c98dd63f..df9a40bfe 100644
--- a/pool_connection_pool.c
+++ b/pool_connection_pool.c
@@ -5,7 +5,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2009 PgPool Global Development Group
+ * Copyright (c) 2003-2010 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -504,7 +504,7 @@ int connect_inet_domain_socket_by_port(char *host, int port)
hp = gethostbyname(host);
if ((hp == NULL) || (hp->h_addrtype != AF_INET))
{
- pool_error("connect_inet_domain_socket: gethostbyname() failed: %s host: %s", strerror(errno), host);
+ pool_error("connect_inet_domain_socket: gethostbyname() failed: %s host: %s", hsterror(h_errno), host);
close(fd);
return -1;
}
[parent: f20e22be309a]