[erlang-questions] Supervisor on-demand
Andreas Hillqvist
andreas.hillqvist@REDACTED
Fri Feb 29 15:13:53 CET 2008
Thank you for that information. I did not have the time to test it my self.
Kind regards
Andreas Hillqvist
2008/2/29, Vance Shipley <vances@REDACTED>:
> On Tue, Feb 26, 2008 at 08:56:31AM +0100, Andreas Hillqvist wrote:
> } I do not belive that a simple_one_for_one supervisor restars a process
> } if it crash.
>
> Were that true there wouldn't be a whole lot of reason to be under
> supervision. It is not the case however as demonstrated below.
>
> -Vance
>
>
> 1> {ok, Super} = supervisor:start_link(super, []).
> {ok,<0.33.0>}
> 2> {ok, Server} = supervisor:start_child(Super, [[], []]).
> server initializing.
> {ok,<0.35.0>}
> 3> exit(Server, kill).
> server initializing.
>
>
>
>
More information about the erlang-questions
mailing list