aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_shell.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-01-28 10:26:10 +0100
committerIngela Anderton Andin <[email protected]>2013-01-28 10:26:10 +0100
commitcab17a9f36d2343e01f6aef64416d2a42308c25b (patch)
tree3a967eb1439bf63b786c0647924341f2a99e1793 /lib/ssh/src/ssh_shell.erl
parentd1b2ad49e74dc78cee737469b467e056a0b07f55 (diff)
parent089f235dd2c2945a63383e79e02616c1a99b50a6 (diff)
downloadotp-cab17a9f36d2343e01f6aef64416d2a42308c25b.tar.gz
otp-cab17a9f36d2343e01f6aef64416d2a42308c25b.tar.bz2
otp-cab17a9f36d2343e01f6aef64416d2a42308c25b.zip
Merge branch 'ia/ssh/dialyzer-and-doc'
* ia/ssh/dialyzer-and-doc: ssh: Fix dialyzer and doc warnings
Diffstat (limited to 'lib/ssh/src/ssh_shell.erl')
-rw-r--r--lib/ssh/src/ssh_shell.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh_shell.erl b/lib/ssh/src/ssh_shell.erl
index 6590486a4c..8031450617 100644
--- a/lib/ssh/src/ssh_shell.erl
+++ b/lib/ssh/src/ssh_shell.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2009-2010. All Rights Reserved.
+%% Copyright Ericsson AB 2009-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
@@ -23,7 +23,9 @@
-include("ssh_connect.hrl").
--behaviour(ssh_channel).
+%%% As this is an user interactive client it behaves like a daemon
+%%% channel inspite of it being a client.
+-behaviour(ssh_daemon_channel).
%% ssh_channel callbacks
-export([init/1, handle_msg/2, handle_ssh_msg/2, terminate/2]).
@@ -123,7 +125,7 @@ handle_ssh_msg({ssh_cm, _, {exit_status, ChannelId, Status}}, State) ->
{stop, ChannelId, State}.
%%--------------------------------------------------------------------
-%% Function: handle_ssh_msg(Args) -> {ok, State} | {stop, ChannelId, State}
+%% Function: handle_msg(Args) -> {ok, State} | {stop, ChannelId, State}
%%
%% Description: Handles other channel messages
%%--------------------------------------------------------------------