Re: [PATCH libinput 5/9] evdev: remove a race condition opening the wrong device

2014-11-24 Thread Hans de Goede
Hi, On 11/24/2014 01:46 AM, Peter Hutterer wrote: Potential race condition: - udev notifies us that a udev_device became available - we go for a coffee and chat to the neighbours on the way - the device is unplugged - a new device is plugged in, gets the same devnode - we finish our coffee and c

[PATCH libinput 5/9] evdev: remove a race condition opening the wrong device

2014-11-23 Thread Peter Hutterer
Potential race condition: - udev notifies us that a udev_device became available - we go for a coffee and chat to the neighbours on the way - the device is unplugged - a new device is plugged in, gets the same devnode - we finish our coffee and come back - open(udev_device_get_devnode()) - new devi