3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 01:19:23 +01:00

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

View File

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