From: Kurt Van Dijck <kurt.van.dijck@eia.be>
To: linux-can@vger.kernel.org
Subject: [can-utils] canbusload: flush output at the end of each cycle
Date: Wed, 21 Dec 2011 10:19:48 +0100 [thread overview]
Message-ID: <20111221091948.GC314@e-circ.dyndns.org> (raw)
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);
}
next reply other threads:[~2011-12-21 9:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 9:19 Kurt Van Dijck [this message]
2011-12-22 6:40 ` [can-utils] canbusload: flush output at the end of each cycle 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111221091948.GC314@e-circ.dyndns.org \
--to=kurt.van.dijck@eia.be \
--cc=linux-can@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).