chiark / gitweb /
terminal: discard async read() errors for evdev
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 2 Sep 2014 12:17:59 +0000 (14:17 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 13:22:16 +0000 (15:22 +0200)
commit98b7fe2ad4055a7978edc28caaadd5a0a9bd97a9
tree0e4ed8555945193f401c1af1dc5e7479ab4be6a6
parentb76388e123e8d73ded1fd53937d816b314948517
terminal: discard async read() errors for evdev

If read() fails on evdev devices, we deal with this in idev_evdev_hup().
It is very likely this is an async revoke, therefore, we must not abort.
Fix our io helper to discard such errors after passing them to
idev_evdev_hup(), so we don't bail out of the event loop.
src/libsystemd-terminal/idev-evdev.c