mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 20:00:46 +02:00
When a guest tries to use the setxid syscalls, the guest glibc has a mechanism in place to ensure that the process wide setxid is handled. The mechanism is fairly complex but it uses signal 33 and sends the signal to all active threads to ensure every thread sets the correct state here. We need to intercept this and pass the context information correctly to the guest instead. Otherwise FEX just crashes when the glibc HOST handler tries handling the guest applications signal. Fixes the game SOMA https://store.steampowered.com/app/282140/SOMA/