[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: r3491 - trunk/varnish-cache/bin/varnishd
From: phk () projects ! linpro ! no (phk at projects ! linpro ! no)
Date: 2008-12-21 18:34:39
Message-ID: 20081221183439.4E9241EC114 () projects ! linpro ! no
[Download RAW message or body]
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);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic