diff --git a/src/eTpf.erl b/src/eTpf.erl index dacd9ad..ef17ed2 100644 --- a/src/eTpf.erl +++ b/src/eTpf.erl @@ -118,7 +118,8 @@ doTrace(InputList, TracerMod, TracerOpts, TraceOpts) -> id => TracerId, start => {TracerMod, start_link, [TracerOpts]}, restart => temporary, - type => worker + type => worker, + shutdown => infinity }), _Mode = maps:get(mode, TraceOpts, trace), diff --git a/src/eTpf_sup.erl b/src/eTpf_sup.erl index 8950e3f..895f3c1 100644 --- a/src/eTpf_sup.erl +++ b/src/eTpf_sup.erl @@ -7,7 +7,7 @@ ]). -define(SERVER, ?MODULE). --define(ChildSpec(Id, Type), #{id => Id, start => {Id, start_link, []}, restart => permanent, shutdown => 5000, type => Type, modules => [Id]}). +-define(ChildSpec(Id, Type), #{id => Id, start => {Id, start_link, []}, restart => permanent, shutdown => infinity, type => Type, modules => [Id]}). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []).