From: Johannes Berg Date: Wed, 29 Sep 2010 07:00:14 +0000 (+0200) Subject: flush stdout after each event X-Git-Tag: v0.9.22~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374e8a26ac2c3fdb0823c89efdad91204546fda4;p=thirdparty%2Fiw.git flush stdout after each event This enables you to pipe output to a file and follow the file instead of reading iw output on a terminal. --- diff --git a/event.c b/event.c index 129db1a..b897e4b 100644 --- a/event.c +++ b/event.c @@ -349,6 +349,7 @@ static int print_event(struct nl_msg *msg, void *arg) break; } + fflush(stdout); return NL_SKIP; #undef PARSE_BEACON_CHAN }