diff --git a/src/main.c b/src/main.c index 975f55ed..471e687d 100644 --- a/src/main.c +++ b/src/main.c @@ -160,6 +160,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); @@ -231,5 +234,7 @@ done: l_signal_remove(signal); l_timeout_remove(timeout); + l_main_exit(); + return exit_status; }