[erlang-questions] supervisors, gen_server:terminate/2, and trap_exit

Imants Cekusins <>
Thu Mar 12 00:50:08 CET 2015


Although not related to terminate question, let me ask another question
about sup-child linkeage:

If StartFunc defined in child spec calls gen_server:start, will supervisor
restart crashed instance of that child if permanent restart is specified in
the child spec?

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150312/b7809370/attachment.html>


More information about the erlang-questions mailing list