aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/supervisor_SUITE_data/app_faulty/src/app_faulty_sup.erl
blob: 8115a8880901933e4744a09e5939310be94b759e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-module(app_faulty_sup).

-behaviour(supervisor).

%% API
-export([start_link/0]).

%% Supervisor callbacks
-export([init/1]).

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

init([]) ->
    AChild = {app_faulty,{app_faulty_server,start_link,[]},
	      permanent,2000,worker,[app_faulty_server]},
    {ok,{{one_for_all,0,1}, [AChild]}}.