From: Caspar Zhang <caspar@casparzhang.com>
To: LTP List <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] syscalls/getrusage03: flush stdout to avoid duplicated output
Date: Tue, 10 Jan 2012 11:40:02 +0800 [thread overview]
Message-ID: <4F0BB312.5070009@casparzhang.com> (raw)
In-Reply-To: <1326166692-18276-1-git-send-email-caspar@casparzhang.com>
On 2012年01月10日 11:38, Caspar Zhang wrote:
>
> when executing with `$BIN/runltp` command, getrusage03 puts out
> duplicated information due to buffered stdout. Using fflush(stdout) to
> solve this issue.
>
> Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
> ---
> testcases/kernel/syscalls/getrusage/getrusage03.c | 7 +++++++
> .../kernel/syscalls/getrusage/getrusage03_child.c | 1 +
> 2 files changed, 8 insertions(+), 0 deletions(-)
>
Not sure if we have any better solution to avoid such buffered I/O issue.
Caspar
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2012-01-10 3:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-10 3:38 [LTP] [PATCH] syscalls/getrusage03: flush stdout to avoid duplicated output Caspar Zhang
2012-01-10 3:40 ` Caspar Zhang [this message]
2012-01-10 3:43 ` Wanlong Gao
2012-01-11 12:20 ` Cyril Hrubis
2012-01-11 12:41 ` Jan Stancek
2012-01-11 12:56 ` Cyril Hrubis
[not found] ` <aa1139e7-47d6-40d4-8406-4cef27343f29@zmail16.collab.prod.int.phx2.redhat.com>
2012-01-11 14:34 ` Cyril Hrubis
[not found] ` <201201130101.06630.vapier@gentoo.org>
2012-01-13 13:07 ` Cyril Hrubis
[not found] ` <201201131216.03211.vapier@gentoo.org>
2012-01-18 16:17 ` Cyril Hrubis
[not found] ` <201201181139.19497.vapier@gentoo.org>
2012-01-19 17:43 ` Cyril Hrubis
[not found] ` <201201191334.47413.vapier@gentoo.org>
2012-01-20 14:37 ` Cyril Hrubis
2012-01-13 5:43 ` Mike Frysinger
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=4F0BB312.5070009@casparzhang.com \
--to=caspar@casparzhang.com \
--cc=ltp-list@lists.sourceforge.net \
/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