diff options
Diffstat (limited to 'src')
-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 a7f4f23..1c2a559 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1060,8 +1060,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; } |