accept.2: Note that 'addrlen' is left unchanged in the event of an error

See http://austingroupbugs.net/view.php?id=836.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-03-17 21:00:01 +01:00
parent 1a29a70ded
commit 03349e33f9
1 changed files with 4 additions and 2 deletions

View File

@ -171,9 +171,11 @@ for reasons why this may be useful.
On success, On success,
these system calls return a nonnegative integer that is a file descriptor these system calls return a nonnegative integer that is a file descriptor
for the accepted socket. for the accepted socket.
On error, \-1 is returned, and On error, \-1 is returned,
.I errno .I errno
is set appropriately. is set appropriately, and
.I addrlen
is left unchanged.
.SS Error handling .SS Error handling
Linux Linux
.BR accept () .BR accept ()