mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +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:
parent
ca0e53b3c5
commit
3b18e7cc00
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user