Re: Use LOG_PID in main.c's openlog()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 9, 2022 at 12:04 PM Opty <opty77@xxxxxxxxx> 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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux