t-runner: Start 'haveged' by default

This commit is contained in:
Tim Kourt 2016-05-19 13:25:23 -07:00 committed by Denis Kenzior
parent 1c901bcc13
commit 05df895da4
1 changed files with 5 additions and 5 deletions

View File

@ -446,7 +446,7 @@ static pid_t start_dbus_daemon(void)
return pid;
}
static pid_t start_haveged(void)
static bool start_haveged(void)
{
char *argv[2];
pid_t pid;
@ -456,9 +456,9 @@ static pid_t start_haveged(void)
pid = execute_program(argv, true);
if (pid < 0)
return -1;
return false;
return pid;
return true;
}
static bool set_interface_state(const char *if_name, bool isUp)
@ -1516,8 +1516,8 @@ static void run_command(char *cmdname)
if (dbus_pid < 0)
goto exit;
if (check_virtualization())
start_haveged();
if (!start_haveged())
goto exit;
test_stat_queue = l_queue_new();