From: Hossein Mobahi <hmobahi@yahoo.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: Problem with read() and named pipe (FIFO) (fflush or fsync)
Date: Tue, 17 Aug 2004 03:58:36 -0700 (PDT) [thread overview]
Message-ID: <20040817105836.14496.qmail@web12703.mail.yahoo.com> (raw)
In-Reply-To: <20040816165745.3ccf3356.henry.margies@gmx.de>
Hello
My program, prg2, is the reader, not writer. So making
the reader flush does not make sense. If I could make
prg1 flush (its writing buffer), it would help, but I
do not have access to the source code of prg1, it is
just an executable file.
I was wondering if we can somehow force an executable
program not to use buffered output without access to
its source code? The program originally uses printf
for writing its output.
--Hossein
--- Henry Margies <henry.margies@gmx.de> wrote:
> Hi
>
>
> Have you tried fflush or fsync or something like
> this?
>
>
> Henry
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
next prev parent reply other threads:[~2004-08-17 10:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 14:47 Problem with read() and named pipe (FIFO) Hossein Mobahi
2004-08-16 14:57 ` Henry Margies
2004-08-17 10:58 ` Hossein Mobahi [this message]
2004-08-17 3:21 ` joy
2004-08-17 10:55 ` Problem with read() and named pipe (FIFO) (pipe not disk) Hossein Mobahi
2004-08-17 17:58 ` joy
2004-08-17 19:24 ` Hossein Mobahi
2004-08-17 19:25 ` Hossein Mobahi
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=20040817105836.14496.qmail@web12703.mail.yahoo.com \
--to=hmobahi@yahoo.com \
--cc=linux-c-programming@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).