diff options
-rw-r--r-- | src/evdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index c0fe244..b12f2ff 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -970,6 +970,8 @@ EvdevProc(DeviceIntPtr device, int what) xf86Msg(X_WARNING, "%s: Release failed (%s)\n", pInfo->name, strerror(errno)); xf86RemoveEnabledDevice(pInfo); + close(pInfo->fd); + pInfo->fd = -1; } if (pEvdev->flags & EVDEV_INITIALIZED) EvdevMBEmuFinalize(pInfo); |