[erlang-questions] Erlang supervisor start_child

Alexey Romanov <>
Sun Jan 30 16:12:17 CET 2011

>From documentation of gen_fsm:start_link:

If FsmName={local,Name}, the gen_fsm is registered locally as Name
using register/2. If FsmName={global,GlobalName}, the gen_fsm is
registered globally as GlobalName using global:register_name/2. If no
name is provided, the gen_fsm is not registered.

Since you can't have two processes with same registered name on a
node, you need to provide different names (or no names at all).

Yours, Alexey Romanov

On Sun, Jan 30, 2011 at 4:57 PM, shk <> wrote:
> Hello,
> I write pop3 server. My application:
>       root supervisor (one_for_one)  -> listener supervisor(one_for_one) ->
> fsm supervisor (simple one_for_one) and listener gen_server
> I run all supervisors it's ok. When i try to start_child of fsm supervisor 2
> or more times i get error: {error,{already_started,<0.324.0>}}
> How can i correctly design my supervisors that i can run many gen_fsm child
> by fsm supervisor.
> All code: https://github.com/onlyshk/epmail
> Thank you.
> --
> View this message in context: http://erlang.2086793.n4.nabble.com/Erlang-supervisor-start-child-tp3247153p3247153.html
> Sent from the Erlang Questions mailing list archive at Nabble.com.
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:

More information about the erlang-questions mailing list