projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9486909
)
Fix bug failed to create INET domain socket in FreeBSD if listen_addresses = '*'.
author
pengbo
<pengbo@sraoss.co.jp>
Tue, 10 Jan 2017 07:59:37 +0000
(16:59 +0900)
committer
pengbo
<pengbo@sraoss.co.jp>
Tue, 10 Jan 2017 08:08:04 +0000
(17:08 +0900)
per bug202.
src/main/pgpool_main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/main/pgpool_main.c
b/src/main/pgpool_main.c
index 2e0b3a7591ec60ed6e183a7819b88719cccd62af..7b1eb310fca7b2f87a61cf08cb29fcb9f8e2d196 100644
(file)
--- a/
src/main/pgpool_main.c
+++ b/
src/main/pgpool_main.c
@@
-767,7
+767,7
@@
static int *create_inet_domain_sockets(const char *hostname, const int port)
errdetail("asprintf() failed: %s", strerror(errno))));
}
- if ((ret = getaddrinfo(hostname, portstr, &hints, &res)) != 0)
+ if ((ret = getaddrinfo(
(!hostname || strcmp(hostname, "*") == 0) ? NULL :
hostname, portstr, &hints, &res)) != 0)
{
ereport(FATAL,
(errmsg("failed to create INET domain socket"),