mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Attempt to reduce accidental foot-shooting by pointing out that
accept(2)ed sockets do not necessarily inherit O_NONBLOCK from listening sockets on non-FreeBSD platforms. Feet shot: cperciva MFC after: 1 month
This commit is contained in:
parent
0f92028501
commit
4054af4fb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198781
@ -126,6 +126,10 @@ new socket.
|
||||
For some applications, performance may be enhanced by using an
|
||||
.Xr accept_filter 9
|
||||
to pre-process incoming connections.
|
||||
.Pp
|
||||
Portable programs should not rely on the
|
||||
.Dv O_NONBLOCK
|
||||
property being inherited.
|
||||
.Sh RETURN VALUES
|
||||
The call returns \-1 on error.
|
||||
If it succeeds, it returns a non-negative
|
||||
|
Loading…
Reference in New Issue
Block a user