Merge "toolbox: getevent: disable stdout buffering"

This commit is contained in:
Treehugger Robot 2019-01-17 00:47:21 +00:00 committed by Gerrit Code Review
commit fa14bc85b0

View file

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