[lkml]   [2000]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Should O_NONBLOCK be copied from listening socket to accepting socket?
Chris Evans <> wrote:

> Well, in our own manpages

> man 7 socket

> It is possible to do non-blocking IO on sockets by setting
> the O_NONBLOCK flag on a socket file descriptor using
> fcntl(2). O_NONBLOCK is inherited through an accept.

Although accept(2) states the opposite:

original socket s is unaffected by this call. Note that
any per file descriptor flags (everything that can be set
with the F_SETFL fcntl, like non blocking or async state)
are not inherited across a accept.
Debian GNU/Linux 2.2 is out! ( )
Email: Herbert Xu ~{PmV>HI~} <>
Home Page:
PGP Key:
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.052 / U:1.948 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site