how does it work

Dietmar Schaefer dietmar-s@REDACTED
Fri Jan 17 11:08:40 CET 2020


I found this supervisor code:

                                                                                                                                                                                                                                                                                                        

-define(SERVER,?MODULE).                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

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



init([])->                    

    {ok, {{one_for_all, 0, 1},[]}}.

How can it work without any specification about what to start?


regards

Dietmar


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200117/868a1ba3/attachment.htm>


More information about the erlang-questions mailing list