Hi all,<br>In order to improve interprocess readability between wpa_supplicant and clients of the control interface, <br>I propose to fflush the outputs of wpa_printf more often (especially stdout).<br><br>Regards,<br><br>
*** wpa_debug.c.old 2009-01-06 19:11:16.000000000 +0100<br>--- wpa_debug.c 2009-02-03 16:51:52.000000000 +0100<br>*************** void wpa_printf(int level, char *fmt, ..<br>*** 67,76 ****<br>--- 67,78 ----<br> if (out_file) {<br>
vfprintf(out_file, fmt, ap);<br> fprintf(out_file, "\n");<br>+ fflush(out_file),<br> } else {<br> #endif /* CONFIG_DEBUG_FILE */<br> vprintf(fmt, ap);<br>
printf("\n");<br>+ fflush(stdout);<br> #ifdef CONFIG_DEBUG_FILE<br> }<br> #endif /* CONFIG_DEBUG_FILE */<br><br>