aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar w00t2006-07-01 10:22:43 +0000
committerGravatar w00t2006-07-01 10:22:43 +0000
commit3168bb4cd121209c49050bd39ed4b8fdbdb910bc (patch)
tree8031b5b4362df9e4f2db2b01e5e03cfc1cc59982 /src/helperfuncs.cpp
parentTweak to IS_LOCAL macro to exclude invalid fd's that are > MAX_DESCRIPTORS (diff)
Add an fflush() call after logging, hopefully fixes the issue with delayed logging on low activity. Reported by Rob from Anope.
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4092 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index b536dceef..0eb273c8e 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -94,7 +94,10 @@ void log(int level, char *text, ...)
va_end(argsPtr);
if (Config->log_file)
+ {
fprintf(Config->log_file,"%s %s\n",TIMESTR,textbuffer);
+ fflush(Config->log_file);
+ }
if (Config->nofork)
{