Commit da2c4611 authored by Petter Knudsen's avatar Petter Knudsen

It now always flushes the stream, even for stdout. See ticket #182.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3080 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ac3b1bb7
......@@ -452,9 +452,8 @@ h_ncsa(void *priv, enum shmlogtag tag, unsigned fd,
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 */
......
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