]> err.no Git - varnish/commitdiff
It now always flushes the stream, even for stdout. See ticket #182.
authorpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Aug 2008 10:04:00 +0000 (10:04 +0000)
committerpetter <petter@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Aug 2008 10:04:00 +0000 (10:04 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3080 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishncsa/varnishncsa.c

index 3c133aa068df3c9417a49d8f0e14b3162926a049..8e7d6df84e385a0a6311718741ffad27f888ee41 100644 (file)
@@ -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 */