SisMaker 4 лет назад
Родитель
Сommit
1db49af90f
2 измененных файлов: 3 добавлений и 2 удалений
  1. +2
    -1
      src/eTpf.erl
  2. +1
    -1
      src/eTpf_sup.erl

+ 2
- 1
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),

+ 1
- 1
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, []).

Загрузка…
Отмена
Сохранить