canbusload: flush output at the end of each cycle

When canbusload is piped to another program, the output
is queued for several cycles. This patch will flush the output
explicitely.

Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
This commit is contained in:
Kurt Van Dijck
2012-01-10 17:41:07 +01:00
committed by Oliver Hartkopp
parent 71bcd74a7d
commit a4c200efe6
+1
View File
@@ -201,6 +201,7 @@ void printstats(int signo)
}
printf("\n");
fflush(stdout);
alarm(1);
}