aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/gen_tcp.xml
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-11-09 08:37:30 +0100
committerRaimo Niskanen <[email protected]>2016-11-09 08:37:30 +0100
commit99bb976389c8971b755f103a67143815a6b3e388 (patch)
tree9c05ea209152e107de7065ac32ee2ab700413aba /lib/kernel/doc/src/gen_tcp.xml
parent89822dcdd805c9a7bfd68349901d594ee64f7605 (diff)
parent992c594106ca23cd4120249cd904f6ffa7bdd13e (diff)
downloadotp-99bb976389c8971b755f103a67143815a6b3e388.tar.gz
otp-99bb976389c8971b755f103a67143815a6b3e388.tar.bz2
otp-99bb976389c8971b755f103a67143815a6b3e388.zip
Merge branch 'maint'
Diffstat (limited to 'lib/kernel/doc/src/gen_tcp.xml')
-rw-r--r--lib/kernel/doc/src/gen_tcp.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml
index 08454b9832..e97db20062 100644
--- a/lib/kernel/doc/src/gen_tcp.xml
+++ b/lib/kernel/doc/src/gen_tcp.xml
@@ -231,7 +231,11 @@ do_recv(Sock, Bs) ->
<c><anno>Socket</anno></c>. The controlling process is the process
that receives messages from the socket. If called by any other
process than the current controlling process,
- <c>{error, not_owner}</c> is returned.</p>
+ <c>{error, not_owner}</c> is returned. If the process identified
+ by <c><anno>Pid</anno></c> is not an existing local pid,
+ <c>{error, badarg}</c> is returned. <c>{error, badarg}</c> may also
+ be returned in some cases when <c><anno>Socket</anno></c> is closed
+ during the execution of this function.</p>
<p>If the socket is set in active mode, this function
will transfer any messages in the mailbox of the caller
to the new controlling process.