Messages in this thread |  | | Date | Mon, 4 Sep 2000 23:38:32 +0100 (BST) | From | Chris Evans <> | Subject | Re: Should O_NONBLOCK be copied from listening socket to accepting socket? |
| |
On Mon, 4 Sep 2000, Alan Cox wrote:
> > Is it required that the O_NONBLOCK flag be copied from a listening > > socket to an accepted socket? Dan Bernstein believes this is a bug. > > My posix 1003.1g draft leaves it undefined. It is possible that > SuS clarifies this. Unless he can cite a SuS version that has clarified this > I believe its like the SIGIO case - inheritance is platform specific.
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.
Cheers Chris
- 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/
|  |