From a4c200efe696b10c77d244eaf6f8cb15397f5759 Mon Sep 17 00:00:00 2001 From: Kurt Van Dijck Date: Wed, 21 Dec 2011 10:08:57 +0100 Subject: [PATCH] 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 --- canbusload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/canbusload.c b/canbusload.c index 26323d2..2693b9e 100644 --- a/canbusload.c +++ b/canbusload.c @@ -201,6 +201,7 @@ void printstats(int signo) } printf("\n"); + fflush(stdout); alarm(1); } -- 2.39.2