aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-10-12 12:59:04 +0200
committerHans Nilsson <[email protected]>2015-10-12 12:59:04 +0200
commit93a49adc5a174a034bba0431f1e8119a1f30dec6 (patch)
tree97b38d50b20a1f3eb47ea45d48f00e294ffe8e93 /lib/ssh
parent309c4b503df1a586e57f6558b6de08245fa80d47 (diff)
downloadotp-93a49adc5a174a034bba0431f1e8119a1f30dec6.tar.gz
otp-93a49adc5a174a034bba0431f1e8119a1f30dec6.tar.bz2
otp-93a49adc5a174a034bba0431f1e8119a1f30dec6.zip
ssh: updatated spec for ssh:daemon
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index 132de71aed..15591fb4a7 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -117,9 +117,9 @@ channel_info(ConnectionRef, ChannelId, Options) ->
ssh_connection_handler:channel_info(ConnectionRef, ChannelId, Options).
%%--------------------------------------------------------------------
--spec daemon(integer()) -> {ok, pid()}.
--spec daemon(integer(), proplists:proplist()) -> {ok, pid()}.
--spec daemon(any | inet:ip_address(), integer(), proplists:proplist()) -> {ok, pid()}.
+-spec daemon(integer()) -> {ok, pid()} | {error, term()}.
+-spec daemon(integer(), proplists:proplist()) -> {ok, pid()} | {error, term()}.
+-spec daemon(any | inet:ip_address(), integer(), proplists:proplist()) -> {ok, pid()} | {error, term()}.
%% Description: Starts a server listening for SSH connections
%% on the given port.