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.
This commit is contained in:
Holger Weiss 2014-12-21 21:03:22 +01:00
parent cc958f7787
commit 06db65e108
1 changed files with 1 additions and 1 deletions

View 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]}]}}.