aboutsummaryrefslogtreecommitdiff
path: root/src/emuMB.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-09-04 18:41:13 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-04 20:17:29 +0930
commit32768f8acd49f49a3daa7965fc2672ca13306780 (patch)
tree978846df883db895f8cb7ebbd50c4d524656200c /src/emuMB.c
parentevdev 2.0.4 (diff)
downloadxf86-input-evdev-32768f8acd49f49a3daa7965fc2672ca13306780.tar.gz
xf86-input-evdev-32768f8acd49f49a3daa7965fc2672ca13306780.tar.bz2
xf86-input-evdev-32768f8acd49f49a3daa7965fc2672ca13306780.zip
Attempt to re-open devices on read errors.
Coming back from resume may leave us with a file descriptor that can be opened but fails on the first read (ENODEV). In this case, try to open the device until it becomes available or until the predefined count expires. To be safe, we cache the information from the device and compare against it when we re-open. This way we ensure that if the topology changes under us, we don't open a completely different device. If a device has changed, we disable it. Adds option "ReopenAttempts" <int> Conflicts: man/evdev.man src/evdev.c src/evdev.h
Diffstat (limited to 'src/emuMB.c')
0 files changed, 0 insertions, 0 deletions