aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_app_wx.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-06-19 10:34:55 +0200
committerDan Gudmundsson <[email protected]>2012-06-19 10:34:55 +0200
commit91e67488391eee5f330da55339d46673848b9777 (patch)
tree4e149ddc2fe60f5fb7105c46e9913b384505ec50 /lib/observer/src/observer_app_wx.erl
parent67d2e30e77db74d0852421c21362d1a9374780e1 (diff)
downloadotp-91e67488391eee5f330da55339d46673848b9777.tar.gz
otp-91e67488391eee5f330da55339d46673848b9777.tar.bz2
otp-91e67488391eee5f330da55339d46673848b9777.zip
Fix process_info from app tab on other nodes
Diffstat (limited to 'lib/observer/src/observer_app_wx.erl')
-rw-r--r--lib/observer/src/observer_app_wx.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/observer/src/observer_app_wx.erl b/lib/observer/src/observer_app_wx.erl
index f9be11e05a..380532e90c 100644
--- a/lib/observer/src/observer_app_wx.erl
+++ b/lib/observer/src/observer_app_wx.erl
@@ -267,9 +267,15 @@ handle_call(Event, From, _State) ->
handle_cast(Event, _State) ->
error({unhandled_cast, Event}).
%%%%%%%%%%
-handle_info({active, Node}, State = #state{parent=Parent, current=Curr}) ->
+handle_info({active, Node}, State = #state{parent=Parent, current=Curr, appmon=Appmon}) ->
create_menus(Parent, []),
- {ok, Pid} = appmon_info:start_link(Node, self(), []),
+ Pid = try
+ Node = node(Appmon),
+ Appmon
+ catch _:_ ->
+ {ok, P} = appmon_info:start_link(Node, self(), []),
+ P
+ end,
appmon_info:app_ctrl(Pid, Node, true, []),
(Curr =/= undefined) andalso appmon_info:app(Pid, Curr, true, []),
{noreply, State#state{appmon=Pid}};