Add the timout to the call signature of run_external_process

This commit is contained in:
Marc Di Luzio
2019-02-21 20:27:41 +00:00
parent 4578af47ba
commit 53d1700a68
6 changed files with 22 additions and 14 deletions

View File

@ -229,7 +229,7 @@ int game_mode_apply_gpu(const GameModeGPUInfo *info, bool apply)
NULL,
};
if (run_external_process(exec_args, NULL) != 0) {
if (run_external_process(exec_args, NULL, -1) != 0) {
LOG_ERROR("Failed to call gpuclockctl, could not apply optimisations!\n");
return -1;
}
@ -262,7 +262,7 @@ int game_mode_get_gpu(GameModeGPUInfo *info)
};
char buffer[EXTERNAL_BUFFER_MAX] = { 0 };
if (run_external_process(exec_args, buffer) != 0) {
if (run_external_process(exec_args, buffer, -1) != 0) {
LOG_ERROR("Failed to call gpuclockctl, could get values!\n");
return -1;
}