diff options
author | Siri Hansen <[email protected]> | 2016-05-12 15:40:32 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2016-05-20 09:40:56 +0200 |
commit | ebd440bfc9eb685606250a82cae352f1ee37dac6 (patch) | |
tree | dcab06a86f1d83b91c8bad145c992c002471882b /lib/observer/src/ttb.erl | |
parent | 705011b8a223630d9800de9bd4d5cfd0b5986879 (diff) | |
download | otp-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.erl | 3 |
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, |