Date: Thu, 6 Apr 2023 19:08:07 -0700 From: Pete Wright <pete@nomadlogic.org> To: Christian Weisgerber <naddy@mips.inka.de> Cc: questions@freebsd.org Subject: Re: Clogged pipe? Message-ID: <ec44b1c4-8f48-19af-c1c5-1f0b2193bc5c@nomadlogic.org> In-Reply-To: <ZC8Xw2ZE7IyDfMKG@lorvorc.mips.inka.de> References: <f8a7a545-9731-7481-4fb2-bfc77b8ad6f0@slagle.net> <ZCtavPuXQtYoV0TC@lorvorc.mips.inka.de> <d7565419-9dda-566c-5fc8-8815a43be3ca@slagle.net> <ZCu3TqNzhZBlDla7@pureos> <4b563b2a-2c26-8c84-f8db-51e4f17dcaf6@slagle.net> <20230406142604.dug4liknps2zuvvz@shelly.nomadlogic.org> <ZC8Xw2ZE7IyDfMKG@lorvorc.mips.inka.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ec44b1c4-8f48-19af-c1c5-1f0b2193bc5c>