From d9614713b81aa13012113b99df0569efc26c2797 Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Fri, 18 Jan 2013 16:26:43 +0100 Subject: Fixed bug which lead to crash in startup of daemon, if port was in use --- lib/ssh/src/ssh.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/ssh') diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index 3ef26b1678..b5a0aa2e05 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -278,7 +278,9 @@ do_start_daemon(Host, Port, Options, SocketOptions) -> {ok, SysSup} -> {ok, SysSup}; {error, {already_started, _}} -> - {error, eaddrinuse} + {error, eaddrinuse}; + {error, R} -> + {error, R} catch exit:{noproc, _} -> {error, ssh_not_started} -- cgit v1.2.3