Subject: Re: pipe(2) and invalid fildes
To: Darren Reed <darrenr@reed.wattle.id.au>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-userlevel
Date: 09/30/2001 04:29:20
On Tue, 2 Oct 2001, Darren Reed wrote:

> There's a lot of "fence sitting" going on in this thread and whilst it
> may be convenient, it should stop.
>
> I have not seen one good argument for leaving EFAULT in the man page.
> A lot of bluster about how it makes it easier to be lazy now and later,
> yes, but nothing else.
>
> >From the 1.5 man page for pipe(2):
> ...
>      [EFAULT]      The fildes buffer is in an invalid area of the process's
>                    address space.
> ...
>
> That does not document, correctly, the current behaviour.  Since it is felt
> that the current behaviour is desired (ie. segmentation fault) then the
> message about EFAULT should simply be removed and no mention of SIGSEGV
> or similar made.

Sounds good.

Take care,

Bill