Subject: Re: bi-directional pipes?
To: Paul Kranenburg <>
From: Matt Thomas <>
List: tech-kern
Date: 02/04/2003 06:22:00
At 06:21 AM 2/4/2003, Paul Kranenburg wrote:
>Our pipe(2) system call internally creates data structures to enable
>bi-directional traffic (inherited from FreeBSD). We don't currently
>use this. We don't even expose it at all since the pipe descriptors are
>marked read-only and write-only.
>The question is: do we want to hang on to this?
>If not, the code can be simplified, which, among other things, would
>reduce complexity of an MP-safe locking design (something that FreeBSD
>hasn't got right either, as far as I can tell).

You can always use socketpair() to get bidirectional pipes.

So I'd say simplify...

Matt Thomas               Internet:
3am Software Foundry      WWW URL:
Cupertino, CA             Disclaimer: I avow all knowledge of this message