diff options
author | Björn-Egil Dahlberg <[email protected]> | 2010-06-09 19:42:42 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2010-06-09 19:43:16 +0200 |
commit | 913c7f82cf3f2594d2f0731fd73b79cd82502ff6 (patch) | |
tree | a7d2f39b6deb9931b219cd7070cbf11051dda935 /lib/tools/src/eprof.erl | |
parent | 7b2c17955337b6c171e43c4eddb44508a8667bb8 (diff) | |
download | otp-913c7f82cf3f2594d2f0731fd73b79cd82502ff6.tar.gz otp-913c7f82cf3f2594d2f0731fd73b79cd82502ff6.tar.bz2 otp-913c7f82cf3f2594d2f0731fd73b79cd82502ff6.zip |
Fix eprof to handle error cases
Diffstat (limited to 'lib/tools/src/eprof.erl')
-rw-r--r-- | lib/tools/src/eprof.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/tools/src/eprof.erl b/lib/tools/src/eprof.erl index bb082a4c66..c25eb4479c 100644 --- a/lib/tools/src/eprof.erl +++ b/lib/tools/src/eprof.erl @@ -174,7 +174,7 @@ handle_call({profile, Rootset, Pattern, M,F,A}, From, #state{fd = Fd } = S) -> pattern = Pattern }}; false -> - exit(Pid, kill), + exit(Pid, eprof_kill), {reply, error, #state{ fd = Fd}} end; @@ -255,12 +255,10 @@ handle_cast(_Msg, State) -> %% %% -------------------------------------------------------------------- %% -handle_info({trace, _Pid, _Cmd, _Type}, S) -> - {noreply, S}; -handle_info({trace, _Parent, spawn, _Pid, _Mfa}, S) -> - {noreply, S}; handle_info({'EXIT', _, normal}, S) -> {noreply, S}; +handle_info({'EXIT', _, eprof_kill}, S) -> + {noreply, S}; handle_info({'EXIT', _, Reason}, #state{ reply = FromTag } = S) -> set_process_trace(false, S#state.rootset), |