mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-12 08:05:20 +02:00
Add the timout to the call signature of run_external_process
This commit is contained in:
@@ -372,7 +372,7 @@ static int run_custom_scripts_tests(struct GameModeConfig *config)
|
||||
LOG_MSG(":::: Running start script [%s]\n", startscripts[i]);
|
||||
|
||||
const char *args[] = { "/bin/sh", "-c", startscripts[i], NULL };
|
||||
int ret = run_external_process(args, NULL);
|
||||
int ret = run_external_process(args, NULL, 10);
|
||||
|
||||
if (ret == 0)
|
||||
LOG_MSG(":::: Passed\n");
|
||||
@@ -395,7 +395,7 @@ static int run_custom_scripts_tests(struct GameModeConfig *config)
|
||||
LOG_MSG(":::: Running end script [%s]\n", endscripts[i]);
|
||||
|
||||
const char *args[] = { "/bin/sh", "-c", endscripts[i], NULL };
|
||||
int ret = run_external_process(args, NULL);
|
||||
int ret = run_external_process(args, NULL, 10);
|
||||
|
||||
if (ret == 0)
|
||||
LOG_MSG(":::: Passed\n");
|
||||
|
Reference in New Issue
Block a user