Messages in this thread |  | | Date | Thu, 7 Sep 2000 16:57:40 +1100 | From | Herbert Xu <> | Subject | Re: Should O_NONBLOCK be copied from listening socket to accepting socket? |
| |
Chris Evans <chris@scary.beasts.org> 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! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |