aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2014-12-04 22:23:35 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-29 13:49:05 (GMT)
commitde27bc7673b75408e8aa761ca523501eb6b6e0f2 (patch)
tree33dc1495aea0d8d4c2906054909792c0ae358fb6 /hostapd/main.c
parenta642a52b1798776ff089e4103a5d1d7edec8f9ea (diff)
downloadhostap-de27bc7673b75408e8aa761ca523501eb6b6e0f2.zip
hostap-de27bc7673b75408e8aa761ca523501eb6b6e0f2.tar.gz
hostap-de27bc7673b75408e8aa761ca523501eb6b6e0f2.tar.bz2
hostapd: Set stdout line-buffered
If hostapd will use stdout for debugging, set stdout to be line buffered in case its output is redirected to a file. This allows incremental output to be viewed immediately instead of at the file buffering interval. Signed-hostap: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index e88ea33..3ecd009 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -638,6 +638,8 @@ int main(int argc, char *argv[])
if (log_file)
wpa_debug_open_file(log_file);
+ else
+ wpa_debug_setup_stdout();
#ifdef CONFIG_DEBUG_LINUX_TRACING
if (enable_trace_dbg) {
int tret = wpa_debug_open_linux_tracing();