diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-15 09:30:58 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-15 09:30:58 +0100 |
commit | 2eeb8718c03ec3c0583716d6db5dc92c59aedde9 (patch) | |
tree | 0564d1529b8dd965ad8ffb1b1e259640bc2a60e1 /lib/kernel | |
parent | b708bf2064513e524eec1d5de1a9e76e97a20131 (diff) | |
parent | 288d2431d99bc9dc30c6c6e9564546399c29db60 (diff) | |
download | otp-2eeb8718c03ec3c0583716d6db5dc92c59aedde9.tar.gz otp-2eeb8718c03ec3c0583716d6db5dc92c59aedde9.tar.bz2 otp-2eeb8718c03ec3c0583716d6db5dc92c59aedde9.zip |
Merge branch 'sc/gen_tcp_send_error_closed/OTP-10839'
* sc/gen_tcp_send_error_closed/OTP-10839:
Fix type of error Reason on gen_tcp:send/2
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/src/gen_tcp.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/gen_tcp.erl b/lib/kernel/src/gen_tcp.erl index ec13ab6d2e..23867300a5 100644 --- a/lib/kernel/src/gen_tcp.erl +++ b/lib/kernel/src/gen_tcp.erl @@ -256,7 +256,7 @@ close(S) -> -spec send(Socket, Packet) -> ok | {error, Reason} when Socket :: socket(), Packet :: iodata(), - Reason :: inet:posix(). + Reason :: closed | inet:posix(). send(S, Packet) when is_port(S) -> case inet_db:lookup_socket(S) of |