]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't buffer the event files, eg: messages
authorMartin Pycko <martinp@digium.com>
Tue, 3 Feb 2004 16:43:07 +0000 (16:43 +0000)
committerMartin Pycko <martinp@digium.com>
Tue, 3 Feb 2004 16:43:07 +0000 (16:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2120 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index 09dbef2ce52e009a44634baa3733bbf010e8f0f4..a4f2bd3551a6c2cbc45264963397126ba35aeb71 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -474,6 +474,7 @@ void ast_log(int level, const char *file, int line, const char *function, const
                    vsnprintf(buf, sizeof(buf), fmt, ap);
                    va_end(ap);
                    fprintf(chan->fileptr, buf);
+                   fflush(chan->fileptr);
            }
            chan = chan->next;
        }