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 b678a0e..149f95d 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1016,6 +1016,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); |