Package: evtest
Version: 20051019-9
Owner: Stephen Kitt <st...@sk2.org>

evtest does no stdout flushing at all between consecutive events reports, which 
can prevent its standard output redirection to a file from working:

evtest /dev/input/event6 >/tmp/evtest.log
(some mouse moving)
cat /tmp/evtest.log
(nothing)

This happened on a custom i686 eglibc build, most likely because the stdio 
buffer lenght is different from a glibc one.

The patch attached adds the required flushing to fix this behaviour.

--- a/utils/evtest.c    2010-05-14 18:25:11.000000000 +0200
+++ b/utils/evtest.c    2010-05-14 18:23:20.000000000 +0200
@@ -364,6 +364,7 @@
                        perror("\nevtest: error reading");
                        return 1;
                }
+               fflush(stdout);

                for (i = 0; i < rd / sizeof(struct input_event); i++)
-- 
Florian



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to