summaryrefslogtreecommitdiff
path: root/src/sock.c
diff options
context:
space:
mode:
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;
}