Re: [PATCH 1/7] evdev: release devices on read() error

2013-10-15 Thread Kristian Høgsberg
On Tue, Oct 15, 2013 at 02:29:56PM +0200, David Herrmann wrote: > 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

[PATCH 1/7] evdev: release devices on read() error

2013-10-15 Thread David Herrmann
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(