linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [can-utils] canbusload: flush output at the end of each cycle
@ 2011-12-21  9:19 Kurt Van Dijck
  2011-12-22  6:40 ` Oliver Hartkopp
  0 siblings, 1 reply; 11+ messages in thread
From: Kurt Van Dijck @ 2011-12-21  9:19 UTC (permalink / raw)
  To: linux-can

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 patch is available in git@gitorious.org:~kurt-vd/can-j1939-utils
in branch regular.

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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-01-11 13:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-21  9:19 [can-utils] canbusload: flush output at the end of each cycle Kurt Van Dijck
2011-12-22  6:40 ` Oliver Hartkopp
2012-01-11 11:12   ` Marc Kleine-Budde
2012-01-11 11:17     ` Oliver Hartkopp
2012-01-11 12:26       ` using git Kurt Van Dijck
2012-01-11 12:39         ` Marc Kleine-Budde
2012-01-11 12:54           ` Kurt Van Dijck
2012-01-11 13:04             ` Marc Kleine-Budde
2012-01-11 11:18     ` git question Kurt Van Dijck
2012-01-11 11:28       ` Marc Kleine-Budde
2012-01-11 12:22         ` Kurt Van Dijck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).