r3681 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Fri Feb 6 15:37:50 CET 2009


Author: tfheen
Date: 2009-02-06 15:37:50 +0100 (Fri, 06 Feb 2009)
New Revision: 3681

Modified:
   branches/2.0/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
Merge r3491: 
Check close(2) status.
Assert that we read the C-source file.



Modified: branches/2.0/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/mgt_vcc.c	2009-02-06 14:34:37 UTC (rev 3680)
+++ branches/2.0/varnish-cache/bin/varnishd/mgt_vcc.c	2009-02-06 14:37:50 UTC (rev 3681)
@@ -174,7 +174,7 @@
 		fprintf(stderr, "Cannot write %s", vp->sf);
 		exit (1);
 	}
-	close(fd);
+	AZ(close(fd));
 	free(csrc);
 	exit (0);
 }
@@ -213,6 +213,7 @@
 
 	if (C_flag) {
 		csrc = vreadfile(sf);
+		XXXAN(csrc);
 		(void)fputs(csrc, stdout);
 		free(csrc);
 	}



More information about the varnish-commit mailing list