summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-12-11 21:44:27 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-12-11 21:44:27 -0800
commit986d9c78daa61375d23e30ce2441925c27bc4482 (patch)
tree5f9fc159ecf0c7ff304b24c4ed27078d62cf1d25 /txr.c
parentfb88953d01dce30f23bf41f3b80f50c9f5540543 (diff)
downloadtxr-986d9c78daa61375d23e30ce2441925c27bc4482.tar.gz
txr-986d9c78daa61375d23e30ce2441925c27bc4482.tar.bz2
txr-986d9c78daa61375d23e30ce2441925c27bc4482.zip
* txr.c (txr_main): Change stderr to line buffered mode.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 2 insertions, 0 deletions
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) {