aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/ttb.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-05-12 15:40:32 +0200
committerSiri Hansen <[email protected]>2016-05-20 09:40:56 +0200
commitebd440bfc9eb685606250a82cae352f1ee37dac6 (patch)
treedcab06a86f1d83b91c8bad145c992c002471882b /lib/observer/src/ttb.erl
parent705011b8a223630d9800de9bd4d5cfd0b5986879 (diff)
downloadotp-ebd440bfc9eb685606250a82cae352f1ee37dac6.tar.gz
otp-ebd440bfc9eb685606250a82cae352f1ee37dac6.tar.bz2
otp-ebd440bfc9eb685606250a82cae352f1ee37dac6.zip
[observer] Allow more trace flags on procs/ports from GUI
Diffstat (limited to 'lib/observer/src/ttb.erl')
-rw-r--r--lib/observer/src/ttb.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/observer/src/ttb.erl b/lib/observer/src/ttb.erl
index e41f2c36fc..ac6c4572eb 100644
--- a/lib/observer/src/ttb.erl
+++ b/lib/observer/src/ttb.erl
@@ -1310,6 +1310,9 @@ ip_to_file(Trace, {shell_only, Fun} = State) ->
ip_to_file(Trace,{{file,File}, ShellOutput}) ->
Fun = dbg:trace_port(file,File), %File can be a filename or a wrap spec
Port = Fun(),
+ %% Just in case this is on the traced node,
+ %% make sure the port is not traced.
+ p(Port,clear),
%% Store the port so it can be properly closed
?MODULE ! {ip_to_file_trace_port, Port, self()},
receive {?MODULE,ok} -> ok end,