aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/sshc_sup.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-03-19 11:42:30 +0100
committerHans Nilsson <[email protected]>2018-03-19 11:42:30 +0100
commitaa5a6ddb3ef4e3f36f49150e57fec2896e9314f2 (patch)
tree0c213786b06eb91038580b918356546af67ffd2c /lib/ssh/src/sshc_sup.erl
parentfd2f39ce26eb8afd51bcf0fac765ec381de663dc (diff)
parent4d5218efec5049c243a5faeac70fd473c028d87f (diff)
downloadotp-aa5a6ddb3ef4e3f36f49150e57fec2896e9314f2.tar.gz
otp-aa5a6ddb3ef4e3f36f49150e57fec2896e9314f2.tar.bz2
otp-aa5a6ddb3ef4e3f36f49150e57fec2896e9314f2.zip
Merge branch 'hans/ssh/faster_app_stop/OTP-14988'
* hans/ssh/faster_app_stop/OTP-14988: ssh: Remove deadlock in supervisor tree ssh: Remove spawn in ssh_system_sup:stop_system/1 ssh: Removed unused sshc_sup:stop_child/1
Diffstat (limited to 'lib/ssh/src/sshc_sup.erl')
-rw-r--r--lib/ssh/src/sshc_sup.erl9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/ssh/src/sshc_sup.erl b/lib/ssh/src/sshc_sup.erl
index fd4d8a3c07..f4b39dbbdc 100644
--- a/lib/ssh/src/sshc_sup.erl
+++ b/lib/ssh/src/sshc_sup.erl
@@ -27,7 +27,7 @@
-behaviour(supervisor).
--export([start_link/0, start_child/1, stop_child/1]).
+-export([start_link/0, start_child/1]).
%% Supervisor callback
-export([init/1]).
@@ -43,13 +43,6 @@ start_link() ->
start_child(Args) ->
supervisor:start_child(?MODULE, Args).
-stop_child(Client) ->
- spawn(fun() ->
- ClientSup = whereis(?SSHC_SUP),
- supervisor:terminate_child(ClientSup, Client)
- end),
- ok.
-
%%%=========================================================================
%%% Supervisor callback
%%%=========================================================================