From 39b9098b4a9220d0d9a853a3678afb849f741951 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Sat, 3 Mar 2012 11:06:46 +1300 Subject: [PATCH] Enable full buffering on stdout/stderr. Now that we explicitly flush on each line, we can enable this to reduce the number of write() calls. --- ui/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/main.c b/ui/main.c index eafe71d..21ca688 100644 --- a/ui/main.c +++ b/ui/main.c @@ -342,6 +342,9 @@ int main(int argc, char **argv) struct cmdline_args args = {0}; int ret = 0; + setvbuf(stderr, NULL, _IOFBF, 0); + setvbuf(stdout, NULL, _IOFBF, 0); + opdb_reset(); ctrlc_init();