linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: linux-can@vger.kernel.org
Subject: Re: [can-utils] canbusload: flush output at the end of each cycle
Date: Thu, 22 Dec 2011 07:40:51 +0100	[thread overview]
Message-ID: <4EF2D0F3.6080909@hartkopp.net> (raw)
In-Reply-To: <20111221091948.GC314@e-circ.dyndns.org>

On 21.12.2011 10:19, Kurt Van Dijck wrote:

> 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>


Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>

Tnx Kurt.

I'll put it into the can-utils tree the next days.

Regards,
Oliver

> 
> 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);
>  }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



  reply	other threads:[~2011-12-22  6:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=4EF2D0F3.6080909@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --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).