From: Johannes Berg Date: Thu, 29 Oct 2009 12:57:27 +0000 (+0100) Subject: flush output after events X-Git-Tag: v2.31-rc1~98^2~13^2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1634aef27b2d72bae326c9401a1d37886d21cee3;p=thirdparty%2Futil-linux.git flush output after events suggested by Martin Dubuc who wants to log it to file --- diff --git a/rfkill.c b/rfkill.c index c9feb996b1..21a0158577 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);