]> err.no Git - varnish/commitdiff
exit after error
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 22 Jul 2006 13:58:31 +0000 (13:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 22 Jul 2006 13:58:31 +0000 (13:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@560 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishlog/varnishlog.c

index 2ccce6c7e3bc6bb4046fc28f28ade07e9863c0cf..7fbfe1b72776127e2575a1383f33c5d3149e32f3 100644 (file)
@@ -233,8 +233,10 @@ main(int argc, char **argv)
 
        if (w_opt != NULL) {
                wfile = fopen(w_opt, "w");
-               if (wfile == NULL)
+               if (wfile == NULL) {
                        perror(w_opt);
+                       exit (1);
+               }
        }
        u = 0;
        v = 0;