mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-27 11:08:29 +00:00
Set pInfo->fd to -1 when we close it in EvdevProc.
This commit is contained in:
@@ -200,6 +200,7 @@ EvdevProc(DeviceIntPtr device, int what)
|
||||
RemoveEnabledDevice (pInfo->fd);
|
||||
xf86RemoveSIGIOHandler (pInfo->fd);
|
||||
close (pInfo->fd);
|
||||
pInfo->fd = -1;
|
||||
|
||||
if (pEvdev->state.axes)
|
||||
EvdevAxesOff (device);
|
||||
|
||||
Reference in New Issue
Block a user