Commit 560d07df authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 2324 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r2324 | des | 2007-12-20 14:57:31 +0100 (Thu, 20 Dec 2007) | 2 lines
  
  When writing to a file, fflush() after every line so tail -F will work.
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@2325 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 604f7ce4
......@@ -392,6 +392,10 @@ h_ncsa(void *priv, enum shmlogtag tag, unsigned fd,
/* %{User-agent}i */
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);
}
/* 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