From: phk Date: Fri, 11 Aug 2006 07:33:59 +0000 (+0000) Subject: Bail if we don't get a listening socket. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec987209c0cc172b1d6d047132a603c4cdfa4124;p=varnish Bail if we don't get a listening socket. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@795 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index fdb0f0b2..915a0c5a 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -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);