quakeforge/libs/input/evdev
Bill Currie 192b76ddc6 [input] Remove closed device in correct place
Removing the device from the devices list after closing the device
could cause the device to be double-freed if something went wrong in the
device removal callback resulting in system shutdown which would then
close all open devices.

The device is removed from the list before the callback is called.

There's still a small opportunity for such in a multi-threaded
environment, but that would take device removal occurring at the same
time as the input system is shut down. Probably the responsibility of
the threaded environment rather than inputlib.
2021-09-25 16:43:03 +09:00
..
hotplug.c [input] Start work on improved input system 2021-08-27 09:10:21 +09:00
inputlib.c [input] Remove closed device in correct place 2021-09-25 16:43:03 +09:00