aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/pjdlog.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-08-27 21:26:55 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-08-27 21:26:55 +0000
commit4767ee29f149c9a34379763e7b537ee821639b3a (patch)
tree7cc42453c26fbea50f7c70326a5567a06997d848 /sbin/hastd/pjdlog.c
parentb9cf0cf5fa7d96a24b2195a649b205b1edb8460e (diff)
downloadsrc-4767ee29f149c9a34379763e7b537ee821639b3a.tar.gz
src-4767ee29f149c9a34379763e7b537ee821639b3a.zip
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
Notes
Notes: svn path=/head/; revision=211898
Diffstat (limited to 'sbin/hastd/pjdlog.c')
-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 6891893cea84..ef3026f77450 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: