r3491 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Dec 21 19:34:39 CET 2008


Author: phk
Date: 2008-12-21 19:34:39 +0100 (Sun, 21 Dec 2008)
New Revision: 3491

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



Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2008-12-21 18:34:02 UTC (rev 3490)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2008-12-21 18:34:39 UTC (rev 3491)
@@ -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