summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-04-01 15:09:44 +0000
committerderaadt <deraadt@openbsd.org>2012-04-01 15:09:44 +0000
commitc27832f543c476ac447aff50821ef00fd62632b0 (patch)
tree54d9adb9e70c263796c9561f45c1f17de153b873 /lib/libc
parentTurn some errors down to info. (diff)
downloadwireguard-openbsd-c27832f543c476ac447aff50821ef00fd62632b0.tar.xz
wireguard-openbsd-c27832f543c476ac447aff50821ef00fd62632b0.zip
remind people to think of the poor file descriptors
with claudio and jmc
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/accept.217
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index a573b59c2f2..fd9e28b80f4 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: accept.2,v 1.20 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: accept.2,v 1.21 2012/04/01 15:09:44 deraadt Exp $
.\" $NetBSD: accept.2,v 1.7 1996/01/31 20:14:42 mycroft Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)accept.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: April 1 2012 $
.Dt ACCEPT 2
.Os
.Sh NAME
@@ -188,4 +188,15 @@ A connection has been aborted.
The
.Fn accept
function appeared in
-.Bx 4.2 .
+.Sh CAVEATS
+When
+.Er EMFILE
+or
+.Er ENFILE
+is returned,
+new connections are neither dequeued nor discarded.
+Thus considerable care is required in
+.Xr select 2
+and
+.Xr poll 2
+loops.