From: Jouni Malinen Date: Sat, 19 Dec 2009 18:55:17 +0000 (+0200) Subject: hostapd: Call os_program_{init,deinit}() X-Git-Tag: hostap_0_7_1~302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d77c31ff3ddb54f2c32b5026c6e66041f8608e;p=thirdparty%2Fhostap.git hostapd: Call os_program_{init,deinit}() --- diff --git a/hostapd/main.c b/hostapd/main.c index 77f205047..164c214f9 100644 --- a/hostapd/main.c +++ b/hostapd/main.c @@ -400,6 +400,9 @@ int main(int argc, char *argv[]) int c, debug = 0, daemonize = 0; char *pid_file = NULL; + if (os_program_init()) + return -1; + for (;;) { c = getopt(argc, argv, "BdhKP:tv"); if (c < 0) @@ -474,5 +477,7 @@ int main(int argc, char *argv[]) hostapd_global_deinit(pid_file); os_free(pid_file); + os_program_deinit(); + return ret; }