aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-06-21 10:39:27 +0200
committerHans Nilsson <[email protected]>2018-06-21 10:42:46 +0200
commitf8cbae5c79f988de4110e4827420ad073a1c7fcb (patch)
tree56bd2cf5980497f244d14a4b995eb07cb2cef452 /lib
parent182c7b954620e9287ba2ddce9b1cbaceb1bddbaf (diff)
downloadotp-f8cbae5c79f988de4110e4827420ad073a1c7fcb.tar.gz
otp-f8cbae5c79f988de4110e4827420ad073a1c7fcb.tar.bz2
otp-f8cbae5c79f988de4110e4827420ad073a1c7fcb.zip
ssh: Report the signal name if there is an exit-signal to sftpd
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh_sftpd.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh_sftpd.erl b/lib/ssh/src/ssh_sftpd.erl
index a9136e5614..9e172fdb9c 100644
--- a/lib/ssh/src/ssh_sftpd.erl
+++ b/lib/ssh/src/ssh_sftpd.erl
@@ -137,9 +137,9 @@ handle_ssh_msg({ssh_cm, _, {signal, _, _}}, State) ->
%% Ignore signals according to RFC 4254 section 6.9.
{ok, State};
-handle_ssh_msg({ssh_cm, _, {exit_signal, ChannelId, _, Error, _}}, State) ->
- Report = io_lib:format("Connection closed by peer ~n Error ~p~n",
- [Error]),
+handle_ssh_msg({ssh_cm, _, {exit_signal, ChannelId, Signal, Error, _}}, State) ->
+ Report = io_lib:format("Connection closed by peer signal ~p~n Error ~p~n",
+ [Signal,Error]),
error_logger:error_report(Report),
{stop, ChannelId, State};