]> err.no Git - varnish/commitdiff
Check close(2) status.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:34:39 +0000 (18:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 18:34:39 +0000 (18:34 +0000)
Assert that we read the C-source file.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3491 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_vcc.c

index 8b73769fb043ae60539b27be98c6f8533d18f124..07e0860d8c92712067874fc23e07ddc21fc1083e 100644 (file)
@@ -174,7 +174,7 @@ run_vcc(void *priv)
                fprintf(stderr, "Cannot write %s", vp->sf);
                exit (1);
        }
-       close(fd);
+       AZ(close(fd));
        free(csrc);
        exit (0);
 }
@@ -213,6 +213,7 @@ mgt_run_cc(const char *vcl, struct vsb *sb, int C_flag)
 
        if (C_flag) {
                csrc = vreadfile(sf);
+               XXXAN(csrc);
                (void)fputs(csrc, stdout);
                free(csrc);
        }