[repost] Patch to make cpdup's stdout unbuffered

Chris Pressey cpressey at catseye.mine.nu
Tue Jun 8 16:18:35 PDT 2004


On Wed, 9 Jun 2004 00:38:36 +0200
"Simon 'corecode' Schubert" <corecode at xxxxxxxxxxxx> 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





More information about the Submit mailing list