diff --git a/man2/recv.2 b/man2/recv.2 index 82c871199..4103e01b1 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -38,7 +38,7 @@ .\" Modified 1998,1999 by Andi Kleen .\" 2001-06-19 corrected SO_EE_OFFENDER, bug report by James Hawtin .\" -.TH RECV 2 2012-12-21 "Linux" "Linux Programmer's Manual" +.TH RECV 2 2013-04-19 "Linux" "Linux Programmer's Manual" .SH NAME recv, recvfrom, recvmsg \- receive a message from a socket .SH SYNOPSIS @@ -388,6 +388,9 @@ error queue. .SH RETURN VALUE These calls return the number of bytes received, or \-1 if an error occurred. +In the event of an error, +.I errno +is set to indicate the error. The return value will be 0 when the peer has performed an orderly shutdown. .SH ERRORS