aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-02-20 13:02:28 +0100
committerHans Nilsson <[email protected]>2018-02-20 13:02:28 +0100
commite2ed1a9701cb83f4568ab17b8f0659803c57e988 (patch)
treeadb2929f9541ad32a74907434d74cc394ec70b22 /lib/ssh
parent309ef748ddc5bde4bcba280ce2739385f27a76e6 (diff)
downloadotp-e2ed1a9701cb83f4568ab17b8f0659803c57e988.tar.gz
otp-e2ed1a9701cb83f4568ab17b8f0659803c57e988.tar.bz2
otp-e2ed1a9701cb83f4568ab17b8f0659803c57e988.zip
ssh: No error message for signal kill
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index 0ca960ef96..c8ac3a9c04 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -1460,13 +1460,12 @@ terminate(shutdown, StateName, State0) ->
State0),
finalize_termination(StateName, State);
-%% terminate({shutdown,Msg}, StateName, State0) when is_record(Msg,ssh_msg_disconnect)->
-%% State = send_msg(Msg, State0),
-%% finalize_termination(StateName, Msg, State);
-
terminate({shutdown,_R}, StateName, State) ->
finalize_termination(StateName, State);
+terminate(kill, StateName, State) ->
+ finalize_termination(StateName, State);
+
terminate(Reason, StateName, State0) ->
%% Others, e.g undef, {badmatch,_}
log_error(Reason),