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
parent
71bcd74a7d
commit
a4c200efe6
|
|
@ -201,6 +201,7 @@ void printstats(int signo)
|
|||
}
|
||||
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
|
||||
alarm(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue