#20623: hostapd: no logging of wpa_printf messages
-----------------------+------------------------
  Reporter:  rmilecki  |      Owner:  developers
      Type:  defect    |     Status:  reopened
  Priority:  normal    |  Milestone:
 Component:  packages  |    Version:  Trunk
Resolution:            |   Keywords:
-----------------------+------------------------

Comment (by rmilecki):

 One of the first eloop queued callbacks is some function calling
 `hostapd_setup_interface_complete`. When eloop runs, after an iteration or
 two, it calls:
 {{{
 ├ (some function)
 ├ hostapd_setup_interface_complete
 ├ hostapd_setup_interface_complete_sync
 ├ hostapd_setup_complete_cb (from hapd->setup_complete_cb pointer)
 └ os_daemonize
 }}}
 This `os_daemonize` is what breaks logging. It forks hostapd process and
 quits. The new process continues and prints messages but `netifd` doesn't
 follow it.

--
Ticket URL: <https://dev.openwrt.org/ticket/20623#comment:6>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to