r3080 - trunk/varnish-cache/bin/varnishncsa
petter at projects.linpro.no
petter at projects.linpro.no
Mon Aug 11 12:04:00 CEST 2008
Author: petter
Date: 2008-08-11 12:04:00 +0200 (Mon, 11 Aug 2008)
New Revision: 3080
Modified:
trunk/varnish-cache/bin/varnishncsa/varnishncsa.c
Log:
It now always flushes the stream, even for stdout. See ticket #182.
Modified: trunk/varnish-cache/bin/varnishncsa/varnishncsa.c
===================================================================
--- trunk/varnish-cache/bin/varnishncsa/varnishncsa.c 2008-08-11 09:49:41 UTC (rev 3079)
+++ trunk/varnish-cache/bin/varnishncsa/varnishncsa.c 2008-08-11 10:04:00 UTC (rev 3080)
@@ -452,9 +452,8 @@
fprintf(fo, "\"%s\"\n",
lp->df_User_agent ? lp->df_User_agent : "-");
- /* hack: flush after every line if writing to file */
- if (fo != stdout)
- fflush(fo);
+ /* flush the stream */
+ fflush(fo);
}
/* clean up */
More information about the varnish-commit
mailing list