From 1db49af90f9bfe2bd26d7a34ea8b5097d60af812 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Fri, 11 Jun 2021 13:42:19 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eTpf.erl | 3 ++- src/eTpf_sup.erl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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, []).