blob: 616a9073ae273ce16e115e29ed6503c57387d195 (
plain) (
tree)
|
|
-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]}}.
|