[erlang-questions] child processes order of termination

Martin Dimitrov <>
Wed May 4 10:42:17 CEST 2011


On application stop what is the order of termination of the supervised

For example, the supervisor's children are defined as follows:

{ok, {{one_for_all, 5, 1},
        {module1, {module1, start_link, []}, permanent, 2000, worker,
        {module2, {module2, start_link, []}, permanent, infinity,
supervisor, [module2]},
        {module3, {module3, start_link, []}, permanent, 2000, worker,

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?



More information about the erlang-questions mailing list