Date: Thu, 6 Apr 2023 21:04:35 +0200 From: Christian Weisgerber <naddy@mips.inka.de> To: Pete Wright <pete@nomadlogic.org> Cc: questions@freebsd.org Subject: Re: Clogged pipe? Message-ID: <ZC8Xw2ZE7IyDfMKG@lorvorc.mips.inka.de> In-Reply-To: <20230406142604.dug4liknps2zuvvz@shelly.nomadlogic.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- Christian "naddy" Weisgerber naddy@mips.inka.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZC8Xw2ZE7IyDfMKG>