Set pInfo->fd to -1 when we close it in EvdevProc.

This commit is contained in:
Zephaniah E. Hull
2006-07-11 03:08:30 -04:00
parent 4645247d45
commit eba5ea8d5a

View File

@@ -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);