--------------------- PatchSet 4553 Date: 2007/05/15 14:32:43 Author: adri Branch: squid3_logdaemon Tag: (none) Log: Do flushing if the buffered_writes option is set to no. Members: src/LogFileBlocking.cc:1.1.2.2->1.1.2.3 Index: squid3/src/LogFileBlocking.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/Attic/LogFileBlocking.cc,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- squid3/src/LogFileBlocking.cc 15 May 2007 13:10:33 -0000 1.1.2.2 +++ squid3/src/LogFileBlocking.cc 15 May 2007 14:32:43 -0000 1.1.2.3 @@ -1,5 +1,5 @@ /* - * $Id: LogFileBlocking.cc,v 1.1.2.2 2007/05/15 13:10:33 adri Exp $ + * $Id: LogFileBlocking.cc,v 1.1.2.3 2007/05/15 14:32:43 adri Exp $ * * DEBUG: section 50 Log file handling * AUTHOR: Adrian Chadd @@ -120,6 +120,10 @@ { assert(fp != NULL); (void) fprintf(fp, "%s", logline.c_str()); + // Flush if we're not doing buffered writes + // XXX this should be a per-logfile attribute, not global! + if (! Config.onoff.buffered_logs) + Flush(); } }