Commit cfe8a7c8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check close(2) status.

Assert that we read the C-source file.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3491 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ded2d4d8
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment