mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
test-runner: Update to the new l_main API
This commit is contained in:
parent
454f7d7867
commit
d9848730ed
@ -1112,6 +1112,9 @@ static pid_t start_execution_timeout_timer(unsigned int max_exec_interval_sec,
|
||||
}
|
||||
|
||||
if (test_timer_pid == 0) {
|
||||
if (!l_main_init())
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
sigemptyset(&mask);
|
||||
sigaddset(&mask, SIGINT);
|
||||
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_signal_remove(signal);
|
||||
|
||||
l_main_exit();
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user