summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/accept.2
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2009-11-02 07:21:13 +0000
committercperciva <cperciva@FreeBSD.org>2009-11-02 07:21:13 +0000
commit32be6002c2189505febb30d5026202a0eee2ee60 (patch)
treeab90950c9cd63d7bfbaa70d1af5a5524e52d2aa5 /lib/libc/sys/accept.2
parented3301cfd4f4cc549f3eb8ae53cd31e701a91312 (diff)
downloadFreeBSD-src-32be6002c2189505febb30d5026202a0eee2ee60.zip
FreeBSD-src-32be6002c2189505febb30d5026202a0eee2ee60.tar.gz
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
Diffstat (limited to 'lib/libc/sys/accept.2')
-rw-r--r--lib/libc/sys/accept.24
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 4387dc6..df6c0b1 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -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
OpenPOWER on IntegriCloud