From: Jann Horn Date: Wed, 22 May 2013 22:54:11 +0000 (+0200) Subject: dont buffer output X-Git-Url: http://git.thejh.net/?p=roguegraph.git;a=commitdiff_plain;h=HEAD dont buffer output --- diff --git a/rg.c b/rg.c index 1c286fc..e9e9ad9 100644 --- a/rg.c +++ b/rg.c @@ -69,6 +69,8 @@ int main(int argc, char **argv) { if (argc != 2) fputs("bad invocation\n", stderr), exit(1); target = argv[1]; + setbuf(stdout, NULL); + while (1) { run(); sleep(300);