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.
This commit is contained in:
Daniel Beer 2012-03-03 11:06:46 +13:00
parent 94abe88bb1
commit 39b9098b4a
1 changed files with 3 additions and 0 deletions

View File

@ -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();