DragonFly BSD
DragonFly submit List (threaded) for 2004-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [repost] Patch to make cpdup's stdout unbuffered


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxx>
Date: Tue, 8 Jun 2004 16:17:47 -0700

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]