3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

iwd: Update to the new l_main api

This commit is contained in:
Denis Kenzior 2016-06-09 09:38:13 -05:00
parent 87296b4aab
commit 454f7d7867

View File

@ -160,6 +160,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);
@ -231,5 +234,7 @@ done:
l_signal_remove(signal); l_signal_remove(signal);
l_timeout_remove(timeout); l_timeout_remove(timeout);
l_main_exit();
return exit_status; return exit_status;
} }