From afedbe80fd34d071c75080bd74ddb2387345f449 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 16 Mar 2010 09:04:51 +0000 Subject: flush --- src/util/common_logging.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/util/common_logging.c') diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 13cb17af7..73a374f46 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c @@ -260,8 +260,11 @@ output_message (enum GNUNET_ErrorType kind, { struct CustomLogger *pos; if (GNUNET_stderr != NULL) - fprintf (GNUNET_stderr, "%s %s %s %s", datestr, comp, - GNUNET_error_type_to_string (kind), msg); + { + fprintf (GNUNET_stderr, "%s %s %s %s", datestr, comp, + GNUNET_error_type_to_string (kind), msg); + fflush (GNUNET_stderr); + } pos = loggers; while (pos != NULL) { -- cgit v1.2.3