]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
flush output after events
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 29 Oct 2009 12:57:27 +0000 (13:57 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Thu, 29 Oct 2009 12:57:27 +0000 (13:57 +0100)
suggested by Martin Dubuc who wants to log it to file

rfkill.c

index c9feb996b1da274e782097e021dd494a9ed88d17..21a015857709b7e65fdfc743ba860a69b75836ad 100644 (file)
--- a/rfkill.c
+++ b/rfkill.c
@@ -57,6 +57,7 @@ static void rfkill_event(void)
                printf("RFKILL event: idx %u type %u op %u soft %u hard %u\n",
                                        event.idx, event.type, event.op,
                                        event.soft, event.hard);
+               fflush(stdout);
        }
 
        close(fd);