mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
Actually apply setpriority to the thread not the client
This commit is contained in:
parent
2d19b61a38
commit
f00a89bc56
@ -138,7 +138,7 @@ void game_mode_apply_renice(const GameModeContext *self, const pid_t client, int
|
||||
tid,
|
||||
prio,
|
||||
expected);
|
||||
} else if (setpriority(PRIO_PROCESS, (id_t)client, (int)renice)) {
|
||||
} else if (setpriority(PRIO_PROCESS, (id_t)tid, (int)renice)) {
|
||||
LOG_HINTED(ERROR,
|
||||
"Failed to renice client [%d,%d], ignoring error condition: %s\n",
|
||||
" -- Your user may not have permission to do this. Please read the docs\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user