Subject: Re: pipes from FreeBSD and the NetBSD async I/O bug
To: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 04/30/2001 16:53:40
On Tue, May 01, 2001 at 01:46:18AM +0200, Emmanuel Dreyfus wrote:

 > Umm... If the emulation changes, we need to review all open sockets on
 > execve(), and modify their flags according to the new emulation. Is this
 > reasonable? I got no idea of the overhead this would introduce. 

Err, maybe.

 > The other question is what field to use? A free bit in the so_options,
 > or a new field? I would use a bit in so_options, defined like this:
 > 
 > #define SO_BSDASYNCIO 0x1000      /* use BSD style asynchronous I/O */

I would say you want a flag to *disable* the BSD behavior, since the
BSD behavior is the original behavior of SIGIO, and the Linux/Solaris
behavior is arguably incorrect (i.e. not historically accurate :-)

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>