aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src
diff options
context:
space:
mode:
Diffstat (limited to 'lib/snmp/src')
-rw-r--r--lib/snmp/src/agent/snmpa_net_if.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_net_if.erl b/lib/snmp/src/agent/snmpa_net_if.erl
index f5fd377341..66964faed7 100644
--- a/lib/snmp/src/agent/snmpa_net_if.erl
+++ b/lib/snmp/src/agent/snmpa_net_if.erl
@@ -153,11 +153,12 @@ init(Prio, NoteStore, MasterAgent, Parent, Opts) ->
{ok, State} ->
proc_lib:init_ack({ok, self()}),
try loop(State)
- catch C:E ->
- S = erlang:get_stacktrace(),
+ catch
+ C:E when C =/= exit, E =/= shutdown ->
Fmt =
"loop/1 EXCEPTION ~w:~w~n"
" ~p",
+ S = erlang:get_stacktrace(),
case C of
exit ->
%% Externally killed, root cause is elsewhere