Use LOG_PID in main.c's openlog()
Opty
opty77 at gmail.com
Sat Jun 1 07:50:39 PDT 2024
On Wed, Nov 9, 2022 at 12:04 PM Opty <opty77 at gmail.com> wrote:
> please use LOG_PID when invoking openlog() in hostapd/main.c like in
> src/utils/wpa_debug.c.
Seems working:
diff -Naur a/hostapd-2.10/hostapd/main.c b/hostapd-2.10/hostapd/main.c
--- a/hostapd-2.10/hostapd/main.c 2022-01-16 21:51:29.000000000 +0100
+++ b/hostapd-2.10/hostapd/main.c 2024-05-31 12:51:03.440378723 +0200
@@ -360,7 +360,7 @@
eloop_register_signal_terminate(handle_term, interfaces);
#ifndef CONFIG_NATIVE_WINDOWS
- openlog("hostapd", 0, LOG_DAEMON);
+ openlog("hostapd", LOG_PID, LOG_DAEMON);
#endif /* CONFIG_NATIVE_WINDOWS */
for (i = 0; wpa_drivers[i]; i++)
I have disabled e-mail delivery so Cc me please.
Regards,
Opty
More information about the Hostap
mailing list