Find a file
David Herrmann b98d0b9d89 evdev: release devices on read() error
If read() fails without EAGAIN/EINTR, the device is very likely dead.
However, we must not remove the device as it might be muted/revoked. So we
simply remove the event-source to avoid polling the device and simply wait
for the udev-remove signal now.

Note that we cannot call evdev_device_destroy() as the caller created the
FD and might need custom code to close it (like weston_launcher_close()).
2013-11-10 17:51:34 +01:00
src evdev: release devices on read() error 2013-11-10 17:51:34 +01:00