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

monitor: Update to new l_main api

This commit is contained in:
Denis Kenzior 2016-06-08 17:40:42 -05:00
parent ee00ac6541
commit 6de565db05

View File

@ -759,6 +759,9 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
if (!l_main_init())
return EXIT_FAILURE;
sigemptyset(&mask);
sigaddset(&mask, SIGINT);
sigaddset(&mask, SIGTERM);
@ -813,5 +816,7 @@ done:
l_signal_remove(signal);
l_free(timeout);
l_main_exit();
return exit_status;
}