accept.2: Add mention of POSIX.1-2008 regarding EAGAIN vs EWOULDBLOCK

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-04-18 07:09:09 +02:00
parent 9db8624bc8
commit fe472573ff
1 changed files with 3 additions and 2 deletions

View File

@ -217,8 +217,9 @@ and
.\" Actually EAGAIN on Linux
The socket is marked nonblocking and no connections are
present to be accepted.
POSIX.1-2001 allows either error to be returned for this case,
and does not require these constants to have the same value,
POSIX.1-2001 and POSIX.1-2008
allow either error to be returned for this case,
and do not require these constants to have the same value,
so a portable application should check for both possibilities.
.TP
.B EBADF