flush output after events

suggested by Martin Dubuc who wants to log it to file
This commit is contained in:
Johannes Berg 2009-10-29 13:57:27 +01:00
parent c089737242
commit 1634aef27b

View file

@ -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);