mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00

We should not leak `SCHED_ISO` into children processes. This is obviously a no-op if launchers use the `LD_PRELOAD` method because every child would also preload the gamemode library (except they patch the environment before forking). But for games supporting gamemode natively, this prevents leaking the scheduler settings into child processes which is important because it children may create high CPU usage which counterfeits the original idea of this. Apparently, this won't work for the nice value except we would intercept the libc forking functions (which would be possible but not very transparent and prone to compatibility problems). However, if we implemented it, it shouldn't be part of this commit anyway. Signed-off-by: Kai Krakow <kai@kaishome.de>