]> granicus.if.org Git - ejabberd/commitdiff
Give temporary processes time to stop cleanly
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 21 Dec 2014 20:03:22 +0000 (21:03 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 21 Dec 2014 20:03:22 +0000 (21:03 +0100)
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.

src/ejabberd_tmp_sup.erl

index 9bc2046a9c687ab85593734586bb7bd48f986488..c6c2181777f35e5c32636b82a41d7e430c37ad1e 100644 (file)
@@ -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]}]}}.