[erlang-questions] child processes order of termination
Martin Dimitrov
mrtndimitrov@REDACTED
Wed May 4 10:42:17 CEST 2011
Hi,
On application stop what is the order of termination of the supervised
processes?
For example, the supervisor's children are defined as follows:
{ok, {{one_for_all, 5, 1},
[
{module1, {module1, start_link, []}, permanent, 2000, worker,
[module1]},
{module2, {module2, start_link, []}, permanent, infinity,
supervisor, [module2]},
{module3, {module3, start_link, []}, permanent, 2000, worker,
[module3]}
]
}}.
In what order they will be terminated? Is it determined?
The module2 is also a supervisor, will its children be terminated before
proceeding with the top one?
Thanks,
Martin
More information about the erlang-questions
mailing list