[erlang-questions] questions about supervisor behavior

Tomasz Maciejewski ponton@REDACTED
Mon Dec 27 16:50:13 CET 2010


Dnia 27-12-2010 o 16:42:03 Seven Du <dujinfang@REDACTED> napisał(a):

> Hi all,
>
> I have problems on get the supervisor working.
>
> I want to start a supvisor with 3 children, and then dynamically add
> children. Everything works fine except that when a child crashes, the
> supervisor doesn't know and then cannot restart automatically. What
> I'm doing wrong?
>
> Code in the following link.
>
> https://gist.github.com/756214

You don't link children with the supervisor. Use gen_server:start_link.

-- 
Tomasz Maciejewski


More information about the erlang-questions mailing list