summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-08 11:50:12 +0100
committerMichael Adam <obnox@samba.org>2013-11-09 13:34:33 +0100
commit947e255d191d18087059f385193e791ba651bc92 (patch)
tree0bc941620f46c06d819dec514402745694be9992 /src
parentb41d140984604e31f94e680257bfedc9893eb181 (diff)
downloadtinyproxy-947e255d191d18087059f385193e791ba651bc92.tar.gz
tinyproxy-947e255d191d18087059f385193e791ba651bc92.zip
sock: in listen_sock(), add a log message for when bind() has failed
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r--src/sock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sock.c b/src/sock.c
index 097af25..fbbd9aa 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -214,6 +214,8 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds)
}
if (bind(listenfd, rp->ai_addr, rp->ai_addrlen) != 0) {
+ log_message (LOG_ERR,
+ "bind failed: %s", strerror (errno));
close (listenfd);
continue;
}