Commit 65812446 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Apply optional unbuffered output on stdout before call to do_order.

Fixes: #760


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5176 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d8f2401e
......@@ -382,12 +382,12 @@ main(int argc, char * const *argv)
if (w_arg != NULL)
do_write(vd, w_arg, a_flag);
if (o_flag)
do_order(vd, argc - optind, argv + optind);
if (u_flag)
setbuf(stdout, NULL);
if (o_flag)
do_order(vd, argc - optind, argv + optind);
while (VSL_Dispatch(vd, VSL_H_Print, stdout) >= 0) {
if (fflush(stdout) != 0) {
perror("stdout");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment