Bladeren bron

Implement restoring the old ioprio value when unregistered

	Another part of the fix for https://github.com/FeralInteractive/gamemode/issues/141
Marc Di Luzio 5 jaren geleden
bovenliggende
commit
598969a538
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      daemon/gamemode.c

+ 3 - 0
daemon/gamemode.c

@@ -513,6 +513,9 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
 
 
 	game_mode_client_count_changed();
 	game_mode_client_count_changed();
 
 
+	/* Restore the ioprio value for the process, expecting it to be the config value  */
+	game_mode_apply_ioprio(self, client, (int)config_get_ioprio_value(self->config));
+
 	/* Restore the renice value for the process, expecting it to be our config value */
 	/* Restore the renice value for the process, expecting it to be our config value */
 	game_mode_apply_renice(self, client, (int)config_get_renice_value(self->config));
 	game_mode_apply_renice(self, client, (int)config_get_renice_value(self->config));