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

Imants Cekusins imantc@REDACTED
Thu Mar 12 14:19:49 CET 2015


so in the context of gs G, started in many possible ways: by a
supervisor, by a standalone process, by an OTP process, via gs:start,
or gs:start_link, the cases when G process ends yet its terminate is
not called, are:

1) when another process calls exit(G, kill) (can only sup try this, or
any parent, or any process even?);

2) when G spawns a non-OTP process C, links to it, does not trap
exits, C dies, brings G down with it, terminate is not called;

*) ?



More information about the erlang-questions mailing list