lkml.org 
[lkml]   [2008]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] alternative to sys_indirect, part 1
From
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Thu, 24 Apr 2008 16:38:35 +0100

> On Thu, 24 Apr 2008 09:00:08 -0700 (PDT)
> David Miller <davem@davemloft.net> wrote:
>
> > From: Alan Cox <alan@lxorguk.ukuu.org.uk>
> > Date: Thu, 24 Apr 2008 16:24:44 +0100
> >
> > > BTW in 4.4BSD and derivatives if I remember rightly F_CLOEXEC *is*
> > > inherited across accept() so I doubt any user space software will be too
> > > upset by such a shift.
> >
> > It actually doesn't.
> >
> > Just like in Linux, no file descriptor flags are inherited.
>
> NDELAY certainly appears to be looking at Stevens.

It's checking NDELAY, for the accept() call itself, on the
parent socket.

It allocates the new FD for the process and sets FREAD and
FWRITE in the flags, that's it.


\
 
 \ /
  Last update: 2008-04-24 18:11    [W:0.084 / U:19.772 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site