diff --git a/toolbox/getevent.c b/toolbox/getevent.c index 39033ad4d..e2c77c37f 100644 --- a/toolbox/getevent.c +++ b/toolbox/getevent.c @@ -530,6 +530,9 @@ int getevent_main(int argc, char *argv[]) const char *device = NULL; const char *device_path = "/dev/input"; + /* disable buffering on stdout */ + setbuf(stdout, NULL); + opterr = 0; do { c = getopt(argc, argv, "tns:Sv::dpilqc:rh");