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

看板DFBSD_submit作者時間21年前 (2004/06/09 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/9 (看更多)
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
文章代碼(AID): #10nhpr00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #10nhpr00 (DFBSD_submit)