]> err.no Git - varnish/commitdiff
Bail if we don't get a listening socket.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 07:33:59 +0000 (07:33 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 07:33:59 +0000 (07:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@795 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index fdb0f0b25956f240ed2168d5d1566ff40fb93259..915a0c5a588784963b3cc14718d11164984e1ca3 100644 (file)
@@ -397,7 +397,8 @@ main(int argc, char *argv[])
         * but do not answer.  That, on the other hand, would eliminate the
         * possibility of doing a "no-glitch" restart of the child process.
         */
-       open_tcp(portnumber);
+       if (open_tcp(portnumber))
+               exit (2);
 
        VSL_MgtInit(SHMLOG_FILENAME, 8*1024*1024);