Bruce M Simpson a3146ff925 Fix an inconsistency in socket option propagation on accept(). Propagate
the SS_NBIO flag from the parent socket to the child socket during an
accept() operation.

The file descriptor O_NONBLOCK flag would have been propagated already
by the fflag assignment, and therefore would have been inconsistent
with the underlying socket's so_state member.

This makes accept() more closely adhere to the API contract we effectively
outline in the manual page. Note also that Linux continues to differ here;
O_NONBLOCK is not propagated. The other BSDs do propagate the flag, as
does Solaris. The Single UNIX Specification does not offer specific
advice on this issue.

PR:		kern/45733
Requested by:	Jayanth Vijayaraghavan
Reviewed by:	rwatson
2004-06-22 23:58:09 +00:00
..
2004-06-19 20:50:50 +00:00
2004-06-17 17:16:53 +00:00
2004-06-14 00:38:54 +00:00
2004-05-18 05:30:06 +00:00
2004-06-21 21:59:00 +00:00
2004-06-16 09:47:26 +00:00
2004-05-14 12:28:31 +00:00
2004-06-22 23:15:01 +00:00
2004-06-22 20:32:17 +00:00
2004-06-21 21:57:31 +00:00
2004-06-22 20:32:17 +00:00