Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Oct 2014 18:11:29 -0700
From:      Xin Li <delphij@delphij.net>
To:        freebsd-doc@freebsd.org
Cc:        Jilles Tjoelker <jilles@stack.nl>
Subject:   accept(2): may return EAGAIN
Message-ID:  <5435E0C1.9000403@delphij.net>

next in thread | raw e-mail | index | archive | help
Hi,

It seems like accept(2) may and does return EAGAIN.  Do the following
change look appropriate to you?

Index: lib/libc/sys/accept.2
===================================================================
--- lib/libc/sys/accept.2	(revision 272709)
+++ lib/libc/sys/accept.2	(working copy)
@@ -28,7 +28,7 @@
 .\"     @(#)accept.2	8.2 (Berkeley) 12/11/93
 .\" $FreeBSD$
 .\"
-.Dd October 1, 2013
+.Dd October 9, 2014
 .Dt ACCEPT 2
 .Os
 .Sh NAME
@@ -201,7 +201,7 @@ The
 .Fa addr
 argument is not in a writable part of the
 user address space.
-.It Bq Er EWOULDBLOCK
+.It Bo Er EWOULDBLOCK Bc or Bq Er EAGAIN
 The socket is marked non-blocking and no connections
 are present to be accepted.
 .It Bq Er ECONNABORTED


Cheers,
-- 
Xin LI <delphij@delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5435E0C1.9000403>