summaryrefslogtreecommitdiff
path: root/inttest/erlc/extra-src/foo_sup.erl
blob: a0f06b6c769cb4b8b140b73949a24232da324841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-module(foo_sup).

-behavior(supervisor).

-export([start_link/0,
         init/1]).

start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

init(_Args) ->
    FooChild = {foo,{foo, start_link, []}, permanent, 5000, worker, [foo]},
    {ok,{{one_for_all,1,1}, [FooChild]}}.