mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 19:12:33 +01:00
hwsim: Update to new l_main api
This commit is contained in:
parent
6de565db05
commit
87296b4aab
@ -425,6 +425,9 @@ int main(int argc, char *argv[])
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!l_main_init())
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
sigemptyset(&mask);
|
sigemptyset(&mask);
|
||||||
sigaddset(&mask, SIGINT);
|
sigaddset(&mask, SIGINT);
|
||||||
sigaddset(&mask, SIGTERM);
|
sigaddset(&mask, SIGTERM);
|
||||||
@ -466,5 +469,7 @@ int main(int argc, char *argv[])
|
|||||||
done:
|
done:
|
||||||
l_signal_remove(signal);
|
l_signal_remove(signal);
|
||||||
|
|
||||||
|
l_main_exit();
|
||||||
|
|
||||||
return exit_status;
|
return exit_status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user