mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Flatpak emulators that use SDL (Flycast, Rosalie's Mupen GUI, xemu) were killed with status 137 a second or two after a game started. Without a RealtimeKit, xdg-desktop-portal reports RTTimeUSecMax 0, and SDL sets that as RLIMIT_RTTIME before asking for a realtime thread. The kernel checks the limit on a thread that is realtime or has a CPU-time timer armed, and a limit of 0 is reached at once: SIGKILL at the hard limit. Fixes #3672