Re: [repost] Patch to make cpdup's stdout unbuffered
On Wed, 9 Jun 2004 00:38:36 +0200
"Simon 'corecode' Schubert" <corecode@fs.ei.tum.de> wrote:
> The buffering is done in the FILE* functions in libc, not on
> STDOUT_FILENO in the kernel.
Ah, right you are - I barely noticed that setvbuf operated on a FILE *.
> This is why we need to tell *libc* not to buffer; this has nothing to
> do with the fd as I understand it.
OK; if you can come up with a patch to the libc startup code in the next
two days, I won't make this change to cpdup, and if it takes longer than
that, I can put it in as an undocumented temporary measure.
-Chris
討論串 (同標題文章)
完整討論串 (本文為第 5 之 9 篇):