diff options
author | Michael Adam <obnox@samba.org> | 2013-11-08 11:50:12 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-09 13:34:33 +0100 |
commit | 947e255d191d18087059f385193e791ba651bc92 (patch) | |
tree | 0bc941620f46c06d819dec514402745694be9992 /src | |
parent | b41d140984604e31f94e680257bfedc9893eb181 (diff) | |
download | tinyproxy-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |