Closed donotturnoff closed 2 years ago
Add user to correct group to read input files, otherwise the program will throw exceptions when loading input devices, thus preventing starvation later.
In the future I should allow the program to run and shut down correctly with no input devices at all.
The program no longer freezes when run without correct permissions, and can be terminated gracefully.
If the program isn't run as root, it can never terminate as the event loop threads get stuck waiting for input from devices they cannot read. This can be fixed by either preventing running as non-root, or by (preferably), finding some way to read events without being root.