mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Merge pull request #75 from kakra/dont-leak-scheduler-attributes
gamemode: Don't leak SCHED_ISO into children
This commit is contained in:
commit
c9031e4a75
@ -224,7 +224,7 @@ static void game_mode_apply_scheduler(GameModeContext *self, pid_t client)
|
|||||||
*/
|
*/
|
||||||
if (!(strcmp(softrealtime, "off") == 0) && (enable_softrealtime)) {
|
if (!(strcmp(softrealtime, "off") == 0) && (enable_softrealtime)) {
|
||||||
const struct sched_param p = { .sched_priority = 0 };
|
const struct sched_param p = { .sched_priority = 0 };
|
||||||
if (sched_setscheduler(client, SCHED_ISO, &p)) {
|
if (sched_setscheduler(client, SCHED_ISO | SCHED_RESET_ON_FORK, &p)) {
|
||||||
LOG_ERROR(
|
LOG_ERROR(
|
||||||
"Setting client [%d] to SCHED_ISO failed with error %d, ignoring (your "
|
"Setting client [%d] to SCHED_ISO failed with error %d, ignoring (your "
|
||||||
"kernel may not support this).\n",
|
"kernel may not support this).\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user