summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--txr.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c3110eb..6b8c3d8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2013-12-11 Kaz Kylheku <kaz@kylheku.com>
+ * txr.c (txr_main): Change stderr to line buffered mode.
+
+2013-12-11 Kaz Kylheku <kaz@kylheku.com>
+
* eval.c (eval_init): log_authpriv_v registered as log-authpriv.
* syslog.c (log_authpriv_v): New variable.
diff --git a/txr.c b/txr.c
index 70dda583..72f1b8f5 100644
--- a/txr.c
+++ b/txr.c
@@ -179,6 +179,8 @@ int txr_main(int argc, char **argv)
prot1(&spec_file_str);
prot1(&self_path);
+ setvbuf(stderr, 0, _IOLBF, 0);
+
yyin_stream = std_input;
if (argc <= 1) {