Commit 7dbf05f1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Tell why bind(2) fails


git-svn-id: http://www.varnish-cache.org/svn/trunk@372 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ed9119ee
......@@ -55,6 +55,10 @@ create_listen_socket(const char *addr, const char *port, int *sp, int nsp)
assert(i == 0);
i = bind(s, r1->ai_addr, r1->ai_addrlen);
if (i != 0) {
perror("bind");
continue;
}
assert(i == 0);
*sp = s;
sp++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment