[erlang-questions] supervisors, gen_server:terminate/2, and trap_exit
Thu Mar 12 01:11:09 CET 2015
On 03/12, Imants Cekusins wrote:
> http://www.erlang.org/doc/man/supervisor.html :
> The start function *must create and link to* the child process
> Yet it is possible to specify gs:start instead of gs:start_link. Would a
> link still be created in this case?
The documentation is right. The function should create a link otherwise
it won't work.
If you don't pass in a function that creates a link, then no link will
be created. The supervisor won't supervise anything except when forcing
a termination (supervisors set up monitors to know when a child has died
following the order to kill them, and when to brutal_kill them)
More information about the erlang-questions