]> err.no Git - varnish/commitdiff
Tell why bind(2) fails
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 7 Jul 2006 07:25:38 +0000 (07:25 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 7 Jul 2006 07:25:38 +0000 (07:25 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@372 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/tcp.c

index 98b1ed05e9278f52941c5157188e94e1e05f8fb0..70f3c1a05940d694436c180e6d878d10b023c1de 100644 (file)
@@ -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++;