From: Holger Weiss Date: Sun, 21 Dec 2014 20:03:22 +0000 (+0100) Subject: Give temporary processes time to stop cleanly X-Git-Tag: 15.02~35^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06db65e1083c8ab35a633560543dae9984905c62;p=ejabberd Give temporary processes time to stop cleanly Allow temporary processes to perform some final actions when shutting down. For example, moc_muc_room:terminate/3 fails to send 'unavailable' presence to the room participants when killed immediately. --- diff --git a/src/ejabberd_tmp_sup.erl b/src/ejabberd_tmp_sup.erl index 9bc2046a9..c6c218177 100644 --- a/src/ejabberd_tmp_sup.erl +++ b/src/ejabberd_tmp_sup.erl @@ -36,4 +36,4 @@ init(Module) -> {ok, {{simple_one_for_one, 10, 1}, [{undefined, {Module, start_link, []}, temporary, - brutal_kill, worker, [Module]}]}}. + 1000, worker, [Module]}]}}.