From: phk Date: Sat, 22 Jul 2006 13:58:31 +0000 (+0000) Subject: exit after error X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba045b8298c4fd275f6dade6ed659a9a53196bf5;p=varnish exit after error git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@560 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishlog/varnishlog.c b/varnish-cache/bin/varnishlog/varnishlog.c index 2ccce6c7..7fbfe1b7 100644 --- a/varnish-cache/bin/varnishlog/varnishlog.c +++ b/varnish-cache/bin/varnishlog/varnishlog.c @@ -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;