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>
pull/7/head
Kurt Van Dijck 2011-12-21 10:08:57 +01:00 committed by Oliver Hartkopp
parent 71bcd74a7d
commit a4c200efe6
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ void printstats(int signo)
}
printf("\n");
fflush(stdout);
alarm(1);
}