diff options
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index b12f2ff..6958578 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -986,8 +986,10 @@ EvdevProc(DeviceIntPtr device, int what) case DEVICE_CLOSE: xf86Msg(X_INFO, "%s: Close\n", pInfo->name); - if (pInfo->fd != -1) + if (pInfo->fd != -1) { close(pInfo->fd); + pInfo->fd = -1; + } break; } |