diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-27 21:26:55 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-27 21:26:55 +0000 |
commit | db793cba897d56bf2e3b8c7fbffce86c11cf2c50 (patch) | |
tree | 7cc42453c26fbea50f7c70326a5567a06997d848 /sbin/hastd/pjdlog.c | |
parent | ae9ec59c5024a5fee5888ac29ca56d2e34dcfeb5 (diff) | |
download | FreeBSD-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/hastd/pjdlog.c')
-rw-r--r-- | sbin/hastd/pjdlog.c | 1 |
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: |