diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-04-01 15:09:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-04-01 15:09:45 +0000 |
commit | 9110bdc8ba024fa0f79f5a639e8d6257eb6d9a10 (patch) | |
tree | e371eb2fbc3eaa2c6582a777147714509dfddcb0 | |
parent | c1eda616a061fe74600e735e412b5ed99acf3aaf (diff) |
remind people to think of the poor file descriptors
with claudio and jmc
-rw-r--r-- | lib/libc/sys/accept.2 | 17 |
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. |