projects
/
platform
/
upstream
/
libevdev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
897dfba
)
Add a FIXME for lack of O_NONBLOCK
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 31 May 2013 05:16:57 +0000
(15:16 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 3 Jun 2013 04:09:27 +0000
(14:09 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev.c
patch
|
blob
|
history
diff --git
a/libevdev/libevdev.c
b/libevdev/libevdev.c
index 9ce626f89727ec845a81d21f1662470c04ec64ce..b2ae0941492e9f07cfaa5b38e3ce0210024309b8 100644
(file)
--- a/
libevdev/libevdev.c
+++ b/
libevdev/libevdev.c
@@
-548,6
+548,10
@@
int libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_e
queue_shift_multiple(dev, dev->queue_nsync, NULL);
}
+ /* FIXME: check for O_NONBLOCK and if not set, skip if we have an
+ * event in the queue from the previous read.
+ */
+
/* Always read in some more events. Best case this smoothes over a potential SYN_DROPPED,
worst case we don't read fast enough and end up with SYN_DROPPED anyway */
rc = read_more_events(dev);