hostapd_cli not handling termination with action file

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

 



Hi All

I've been having a problem using hostapd_cli when I use it with an action file. When I terminate my command I start receiving error messages:

daemon.notice hostapd: CTRL_IFACE monitor[0]: 146 - Connection refused

I thought it might be something to do with hostapd_cli not shutting down correctly. After reading the source code I'm fairly sure this is correct. I can only find the termination handler:

eloop_register_signal_terminate(hostapd_cli_eloop_terminate, NULL);

in hostapd_cli_interactive(void). Given this isn't called when running with an action file set I don't see any way of the main loop in hostapd_cli_action:

while (!hostapd_cli_quit){

ever terminating. As far as I can see the simple fix is to move eloop_register_signal_terminate(hostapd_cli_eloop_terminate, NULL); into main.

thanks

Sam


_______________________________________________
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