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

client: Update to new l_main api

This commit is contained in:
Denis Kenzior 2016-06-08 17:39:35 -05:00
parent ab15413294
commit ee00ac6541

View File

@ -70,6 +70,9 @@ int main(int argc, char *argv[])
struct l_signal *signal;
sigset_t mask;
if (!l_main_init())
return EXIT_FAILURE;
sigemptyset(&mask);
sigaddset(&mask, SIGINT);
sigaddset(&mask, SIGTERM);
@ -109,5 +112,7 @@ int main(int argc, char *argv[])
done:
l_signal_remove(signal);
l_main_exit();
return exit_status;
}