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

Imants Cekusins <>
Thu Mar 12 14:02:40 CET 2015


thank you Fred!

sorry, another question:

so gen_X:start is (among other things) a spawn with no link, no trapping
and gen_X:start_link is spawn + link + trap exits?

OTP are always started via either start or start_link,

so a gs needs to spawn a non-OTP process, explicitly link to it and
not trap exits to put its terminate at risk?


More information about the erlang-questions mailing list