Date: Mon, 04 Dec 2000 12:56:51 +1000 From: Stephen McKay <mckay@thehub.com.au> To: "G. Adam Stanislav" <adam@whizkidtech.net> Cc: hackers@freebsd.org Subject: Re: pipe Message-ID: <200012040256.eB42upH07905@dungeon.home> In-Reply-To: <20001203012841.B228@whizkidtech.net> from "G. Adam Stanislav" at "Sun, 03 Dec 2000 07:28:41 %2B0000" References: <20001202085127.A301@int80h.org> <3A292D98.E655D755@softweyr.com> <20001203012841.B228@whizkidtech.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 3rd December 2000, "G. Adam Stanislav" wrote: >On Sat, Dec 02, 2000 at 10:12:56AM -0700, Wes Peters wrote: >>Yes, you can read from your own pipe, and yes the buffering availabe in >>the pipe is limited. IIRC, the pipe size is 8K. > >Thank you. In that case I'll be better off using child processes for >what I am working on. But I will use pipes from within a process >whenever I know that my data will not grow larger than 8K. Using pipes for temporary storage is still a crazy idea. Pipes can be smaller than 8K, depending on the flavour of Unix. Use malloc() instead. There are plenty of books out there that describe data structures for every occasion. Each of them will be better than using a pipe for the wrong purpose. Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012040256.eB42upH07905>