summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--evtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/evtest.c b/evtest.c
index a68b900..8671c07 100644
--- a/evtest.c
+++ b/evtest.c
@@ -637,6 +637,9 @@ int main (int argc, char **argv)
free(filename);
+ if (!isatty(fileno(stdout)))
+ setbuf(stdout, NULL);
+
if (print_device_info(fd))
return 1;
@@ -653,6 +656,5 @@ int main (int argc, char **argv)
printf("***********************************************\n");
}
-
return print_events(fd);
}