dont buffer output master
authorJann Horn <jann@thejh.net>
Wed, 22 May 2013 22:54:11 +0000 (00:54 +0200)
committerJann Horn <jann@thejh.net>
Wed, 22 May 2013 22:54:11 +0000 (00:54 +0200)
rg.c

diff --git a/rg.c b/rg.c
index 1c286fc..e9e9ad9 100644 (file)
--- 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);