summaryrefslogtreecommitdiffstats
path: root/rfkill.c
diff options
context:
space:
mode:
authorJohannes Berg2009-10-29 13:57:27 +0100
committerJohannes Berg2009-10-29 13:57:27 +0100
commit1634aef27b2d72bae326c9401a1d37886d21cee3 (patch)
treedfc261b5da10a64ab9f8f84ed2190b33c1f3db69 /rfkill.c
parentdefault install to $(PREFIX)/sbin (diff)
downloadkernel-qcow2-util-linux-1634aef27b2d72bae326c9401a1d37886d21cee3.tar.gz
kernel-qcow2-util-linux-1634aef27b2d72bae326c9401a1d37886d21cee3.tar.xz
kernel-qcow2-util-linux-1634aef27b2d72bae326c9401a1d37886d21cee3.zip
flush output after events
suggested by Martin Dubuc who wants to log it to file
Diffstat (limited to 'rfkill.c')
-rw-r--r--rfkill.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rfkill.c b/rfkill.c
index c9feb996b..21a015857 100644
--- 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);