]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
flush stdout after each event
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Sep 2010 07:00:14 +0000 (09:00 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Sep 2010 07:00:14 +0000 (09:00 +0200)
This enables you to pipe output to a
file and follow the file instead of
reading iw output on a terminal.

event.c

diff --git a/event.c b/event.c
index 129db1a9e38038426c61c0302bf6fd80d689eb42..b897e4b4a74d991cef0267d4a93801a08064c25a 100644 (file)
--- 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
 }