diff options
author | Henrik Nord <[email protected]> | 2014-10-23 11:31:11 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-10-23 11:31:11 +0200 |
commit | 4dd483c187317ace77d052eec43cc34efb9b00a3 (patch) | |
tree | 43e0d35e8d442c1731bddcb7bdb47450f4ec7f0a /lib/ssh/src/ssh_channel.erl | |
parent | f5fab7691de210fec10e5c5d9db67710958797a3 (diff) | |
parent | 9f0477e13bb8819ee252d2b8834c1411f02a9cb8 (diff) | |
download | otp-4dd483c187317ace77d052eec43cc34efb9b00a3.tar.gz otp-4dd483c187317ace77d052eec43cc34efb9b00a3.tar.bz2 otp-4dd483c187317ace77d052eec43cc34efb9b00a3.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssh/src/ssh_channel.erl')
-rw-r--r-- | lib/ssh/src/ssh_channel.erl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_channel.erl b/lib/ssh/src/ssh_channel.erl index 508ae637cf..5c24f362b1 100644 --- a/lib/ssh/src/ssh_channel.erl +++ b/lib/ssh/src/ssh_channel.erl @@ -67,7 +67,8 @@ %% Internal application API -export([cache_create/0, cache_lookup/2, cache_update/2, cache_delete/1, cache_delete/2, cache_foldl/3, - cache_find/2]). + cache_find/2, + get_print_info/1]). -record(state, { cm, @@ -190,6 +191,14 @@ init([Options]) -> %% {stop, Reason, State} %% Description: Handling call messages %%-------------------------------------------------------------------- +handle_call(get_print_info, _From, State) -> + Reply = + {{State#state.cm, + State#state.channel_id}, + io_lib:format('CB=~p',[State#state.channel_cb]) + }, + {reply, Reply, State}; + handle_call(Request, From, #state{channel_cb = Module, channel_state = ChannelState} = State) -> try Module:handle_call(Request, From, ChannelState) of @@ -333,6 +342,9 @@ cache_find(ChannelPid, Cache) -> Channel end. +get_print_info(Pid) -> + call(Pid, get_print_info, 1000). + %%-------------------------------------------------------------------- %%% Internal functions %%-------------------------------------------------------------------- |