From 9d87eecd0f4cd884c82401136e066f1288d59bbd Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 23 Sep 2001 10:07:06 +0000 Subject: [PATCH] Open logs in line-buffered mode, so that logging is actually useful. svn path=/trunk/log/; revision=2075 --- src/log/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log/log.c b/src/log/log.c index 512c192d..57a274ec 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -84,6 +84,7 @@ int log_open(const char *filename) _release_log_id(log_id); return LOG_ECANTOPEN; } + setvbuf(loglist[log_id].logfile, NULL, _IOLBF, 0); return log_id; }