summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-08-27 21:26:55 +0000
committerpjd <pjd@FreeBSD.org>2010-08-27 21:26:55 +0000
commitdb793cba897d56bf2e3b8c7fbffce86c11cf2c50 (patch)
tree7cc42453c26fbea50f7c70326a5567a06997d848 /sbin
parentae9ec59c5024a5fee5888ac29ca56d2e34dcfeb5 (diff)
downloadFreeBSD-src-db793cba897d56bf2e3b8c7fbffce86c11cf2c50.zip
FreeBSD-src-db793cba897d56bf2e3b8c7fbffce86c11cf2c50.tar.gz
When logging to stdout/stderr, flush after each log.
MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/pjdlog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/hastd/pjdlog.c b/sbin/hastd/pjdlog.c
index 6891893..ef3026f 100644
--- a/sbin/hastd/pjdlog.c
+++ b/sbin/hastd/pjdlog.c
@@ -217,6 +217,7 @@ pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
if (error != -1)
fprintf(out, ": %s.", strerror(error));
fprintf(out, "\n");
+ fflush(out);
break;
}
case PJDLOG_MODE_SYSLOG:
OpenPOWER on IntegriCloud