25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Don't attempt to restart killed lager

This is not very robust and the call may hang forever
This commit is contained in:
Evgeny Khramtsov 2019-07-24 19:47:09 +03:00
parent ca0e53b3c5
commit 3b18e7cc00

View File

@ -281,7 +281,6 @@ do_kill(Stats, Threshold) ->
false ->
false;
Pid ->
maybe_restart_app(App),
{true, Pid}
end
end;
@ -310,9 +309,3 @@ kill_proc(Pid) ->
set_oom_watermark() ->
WaterMark = ejabberd_option:oom_watermark(),
memsup:set_sysmem_high_watermark(WaterMark/100).
-spec maybe_restart_app(atom()) -> any().
maybe_restart_app(lager) ->
ejabberd_logger:restart();
maybe_restart_app(_) ->
ok.