./ct_report/coverage/ejabberd_tmp_sup.COVER.html

1 %%%----------------------------------------------------------------------
2 %%% File : ejabberd_tmp_sup.erl
3 %%% Author : Alexey Shchepin <alexey@process-one.net>
4 %%% Purpose : Supervisor for temporary processess
5 %%% Created : 18 Jul 2003 by Alexey Shchepin <alexey@process-one.net>
6 %%%
7 %%%
8 %%% ejabberd, Copyright (C) 2002-2011 ProcessOne
9 %%%
10 %%% This program is free software; you can redistribute it and/or
11 %%% modify it under the terms of the GNU General Public License as
12 %%% published by the Free Software Foundation; either version 2 of the
13 %%% License, or (at your option) any later version.
14 %%%
15 %%% This program is distributed in the hope that it will be useful,
16 %%% but WITHOUT ANY WARRANTY; without even the implied warranty of
17 %%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 %%% General Public License for more details.
19 %%%
20 %%% You should have received a copy of the GNU General Public License
21 %%% along with this program; if not, write to the Free Software
22 %%% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 %%%
24 %%%----------------------------------------------------------------------
25
26 -module(ejabberd_tmp_sup).
27 -author('alexey@process-one.net').
28
29 -export([start_link/2, init/1]).
30
31 -ignore_xref([init/1, start_link/2]).
32
33 start_link(Name, Module) ->
34 733 supervisor:start_link({local, Name}, ?MODULE, Module).
35
36
37 init(Module) ->
38 733 {ok, {{simple_one_for_one, 10, 1},
39 [{undefined, {Module, start_link, []},
40 temporary, brutal_kill, worker, [Module]}]}}.
Line Hits Source