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
..
2003-06-11 00:56:59 +00:00
2003-06-11 00:56:59 +00:00
2003-06-11 00:56:59 +00:00
2003-06-11 00:56:59 +00:00
2004-06-17 17:16:53 +00:00
2004-06-11 17:48:20 +00:00
2003-06-11 00:56:59 +00:00
2004-05-03 22:54:46 +00:00
2003-06-11 00:56:59 +00:00
2004-06-11 11:16:26 +00:00
2003-06-11 00:56:59 +00:00
2004-06-21 22:34:57 +00:00
2004-06-11 11:16:26 +00:00
2003-06-11 00:56:59 +00:00
2003-06-11 06:34:30 +00:00
2003-06-11 06:34:30 +00:00
2003-06-11 00:56:59 +00:00
2003-06-11 00:56:59 +00:00
2003-06-11 00:56:59 +00:00
2004-04-12 23:02:21 +00:00
2004-02-17 10:21:03 +00:00
2004-03-31 08:20:44 +00:00
2003-06-11 00:56:59 +00:00
2004-05-30 20:34:58 +00:00
2004-05-30 20:34:58 +00:00
2004-06-17 17:16:53 +00:00
2004-06-17 17:16:53 +00:00
2004-05-30 20:34:58 +00:00
2004-06-17 17:16:53 +00:00
2004-06-17 17:16:53 +00:00