diff options
author | Ingela Anderton Andin <[email protected]> | 2013-11-27 08:18:12 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-11-27 08:18:12 +0100 |
commit | fb8b76bff0a43ae5bf3982a9b70e2bcfbc8ceedb (patch) | |
tree | 5078fce506a5c63129ddcd08faca848ef04863e9 /lib/ssh/src/sshd_sup.erl | |
parent | 0f13b20298fd6f63a08d6fa1d1159a91d79fa1f6 (diff) | |
parent | 22e2b396e2fabe27c5a74843495c3eaf6900e211 (diff) | |
download | otp-fb8b76bff0a43ae5bf3982a9b70e2bcfbc8ceedb.tar.gz otp-fb8b76bff0a43ae5bf3982a9b70e2bcfbc8ceedb.tar.bz2 otp-fb8b76bff0a43ae5bf3982a9b70e2bcfbc8ceedb.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssh/src/sshd_sup.erl')
-rw-r--r-- | lib/ssh/src/sshd_sup.erl | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/ssh/src/sshd_sup.erl b/lib/ssh/src/sshd_sup.erl index 747906b2cf..60222f5172 100644 --- a/lib/ssh/src/sshd_sup.erl +++ b/lib/ssh/src/sshd_sup.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2010. All Rights Reserved. +%% Copyright Ericsson AB 2008-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -58,12 +58,7 @@ start_child(ServerOpts) -> end. stop_child(Name) -> - case supervisor:terminate_child(?MODULE, Name) of - ok -> - supervisor:delete_child(?MODULE, Name); - Error -> - Error - end. + supervisor:terminate_child(?MODULE, Name). stop_child(Address, Port) -> Name = id(Address, Port), @@ -94,7 +89,7 @@ init([Servers]) -> child_spec(Address, Port, ServerOpts) -> Name = id(Address, Port), StartFunc = {ssh_system_sup, start_link, [ServerOpts]}, - Restart = transient, + Restart = temporary, Shutdown = infinity, Modules = [ssh_system_sup], Type = supervisor, |