Re: [PATCH] /dev/epoll update ...

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 19 Sep 2001 19:26:25 +0100 (BST)


> Stevens [UNPV1, in chapter on nonblocking accept] suggests that readiness
> notifications from the OS should only be considered hints, and that user
> programs should behave properly even if the OS feeds it false readiness
> events.

For accept this is specifically and definitely true. A pending connection
can go away before you accept it. What happens then is rather OS specific -
BSD unix gives you a socket that has died - which can be handy and avoids
the problem but others don't all do the same
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/