Re: Clogged pipe?
- In reply to: Christian Weisgerber : "Re: Clogged pipe?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Apr 2023 02:08:07 UTC
On 4/6/23 12:04 PM, Christian Weisgerber wrote: > Pete Wright: > >>> What actually fixes the buffering problem on FreeBSD (it already works fine >>> on Linux) is to add the -u flag to the cat command. >> Jan Schaumann had a great blog post on pipes buffer sizes a while back >> that may be interesting: >> https://www.netmeister.org/blog/ipcbufs.html > That is an entirely different issue. Your problem was due to > buffering in libc's stdio implementation. Again: See the DESCRIPTION > section of setbuf(3) for a terse summary. > I'm a different Pete than the OP, but considering the general confusion around this thought it would be a helpful article. <shrug> -p