Actually close the fd on DEVICE_CLOSE (bug#16948)

Fixes file descriptor leak.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Julien Cristau
2008-08-04 09:16:53 +09:30
committed by Peter Hutterer
parent 5c074af5a9
commit d9097df01b

View File

@@ -973,6 +973,7 @@ EvdevProc(DeviceIntPtr device, int what)
case DEVICE_CLOSE:
xf86Msg(X_INFO, "%s: Close\n", pInfo->name);
close(pInfo->fd);
break;
}