From 03349e33f9a1c29048cde5195df5722038fd1ba0 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 17 Mar 2019 21:00:01 +0100 Subject: [PATCH] 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 --- man2/accept.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man2/accept.2 b/man2/accept.2 index 1f9a87260..a4bebd214 100644 --- a/man2/accept.2 +++ b/man2/accept.2 @@ -171,9 +171,11 @@ for reasons why this may be useful. On success, these system calls return a nonnegative integer that is a file descriptor for the accepted socket. -On error, \-1 is returned, and +On error, \-1 is returned, .I errno -is set appropriately. +is set appropriately, and +.I addrlen +is left unchanged. .SS Error handling Linux .BR accept ()