1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
-module(supervisor_incorrect_return).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
init([]) ->
AChild = {'AName',{'AModule',start_link,[]},
permanent,2000,worker,['AModule']},
{ok,{{one_against_one,0,1}, [AChild]}}.
|