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

test-runner: Update to the new l_main API

This commit is contained in:
Denis Kenzior 2016-06-09 09:42:29 -05:00
parent 454f7d7867
commit d9848730ed

View File

@ -1112,6 +1112,9 @@ static pid_t start_execution_timeout_timer(unsigned int max_exec_interval_sec,
} }
if (test_timer_pid == 0) { if (test_timer_pid == 0) {
if (!l_main_init())
exit(EXIT_FAILURE);
sigemptyset(&mask); sigemptyset(&mask);
sigaddset(&mask, SIGINT); sigaddset(&mask, SIGINT);
sigaddset(&mask, SIGTERM); sigaddset(&mask, SIGTERM);
@ -1129,6 +1132,8 @@ static pid_t start_execution_timeout_timer(unsigned int max_exec_interval_sec,
l_timeout_remove(test_exec_timeout); l_timeout_remove(test_exec_timeout);
l_signal_remove(signal); l_signal_remove(signal);
l_main_exit();
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }