r5176 - trunk/varnish-cache/bin/varnishlog
martin at varnish-cache.org
martin at varnish-cache.org
Tue Sep 7 15:12:13 CEST 2010
Author: martin
Date: 2010-09-07 15:12:12 +0200 (Tue, 07 Sep 2010)
New Revision: 5176
Modified:
trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Apply optional unbuffered output on stdout before call to do_order.
Fixes: #760
Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c 2010-09-06 14:57:27 UTC (rev 5175)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c 2010-09-07 13:12:12 UTC (rev 5176)
@@ -382,12 +382,12 @@
if (w_arg != NULL)
do_write(vd, w_arg, a_flag);
+ if (u_flag)
+ setbuf(stdout, NULL);
+
if (o_flag)
do_order(vd, argc - optind, argv + optind);
- if (u_flag)
- setbuf(stdout, NULL);
-
while (VSL_Dispatch(vd, VSL_H_Print, stdout) >= 0) {
if (fflush(stdout) != 0) {
perror("stdout");
More information about the varnish-commit
mailing list