From 947e255d191d18087059f385193e791ba651bc92 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 8 Nov 2013 11:50:12 +0100 Subject: sock: in listen_sock(), add a log message for when bind() has failed Signed-off-by: Michael Adam --- src/sock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3