[erlang-questions] "simple_one_for_one" supervisor childs termination problem
Tue Nov 30 13:40:09 CET 2010
2010/11/30 Lukas Larsson <garazdawi@REDACTED>:
> When terminating a child the supervisor calls exit(Pid,shutdown). When a
> process receives an exit signal it will automatically die unless it is
> trapping exits. So in order for terminate to be called before the process
> dies you have to trap exits within the child process.
I forgot to mention that I'm already traping exit in "foo_srv.erl":
%% --- gen server callbacks
Even with that, the worker process never get the "shutdown" EXIT message.
More information about the erlang-questions