aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-03-16 12:00:02 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-03-16 12:01:23 +0100
commit2c1d754fe6aa407f650e6cf6521795fc529a43c3 (patch)
treeb3059a7b8ae5ce33a24fc8728a716bf168c76995
parent8412801d553f0f5c89243476ab147b3a5c915423 (diff)
downloadotp-2c1d754fe6aa407f650e6cf6521795fc529a43c3.tar.gz
otp-2c1d754fe6aa407f650e6cf6521795fc529a43c3.tar.bz2
otp-2c1d754fe6aa407f650e6cf6521795fc529a43c3.zip
gen_tcp: Use correct specs for accept and listen
-rw-r--r--lib/kernel/src/gen_tcp.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/gen_tcp.erl b/lib/kernel/src/gen_tcp.erl
index 02a6190034..56d0451e44 100644
--- a/lib/kernel/src/gen_tcp.erl
+++ b/lib/kernel/src/gen_tcp.erl
@@ -175,7 +175,7 @@ try_connect([], _Port, _Opts, _Timer, _Mod, Err) ->
Port :: inet:port_number(),
Options :: [listen_option()],
ListenSocket :: socket(),
- Reason :: inet:posix().
+ Reason :: system_limit | inet:posix().
listen(Port, Opts) ->
Mod = mod(Opts, undefined),
@@ -208,7 +208,7 @@ accept(S) ->
ListenSocket :: socket(),
Timeout :: timeout(),
Socket :: socket(),
- Reason :: closed | timeout | inet:posix().
+ Reason :: closed | timeout | system_limit | inet:posix().
accept(S, Time) when is_port(S) ->
case inet_db:lookup_socket(S) of