concept termination in category erlang

appears as: termination
Erlang and OTP in Action

This is an excerpt from Manning's book Erlang and OTP in Action.

When an Erlang process dies unexpectedly, an exit signal is generated. All processes that are linked to the dying process receive this signal. By default, this causes the receiver to exit as well and propagate the signal on to any other processes it’s linked to, and so on, until all the processes that are linked directly or indirectly to each other have exited (see figure 1.2). This cascading behaviour allows you to have a group of processes behave as a single application with respect to termination, so that you never need to worry about finding and killing off any leftover processes before you can restart that entire subsystem from scratch.

2> die_please:start_link().
{ok,<0.40.0>}
3>
=ERROR REPORT==== 4-Apr-2009::15:18:25 ===
** Generic server die_please terminating
** Last message in was timeout
** When Server state == {state}
** Reason for termination ==
** {{badmatch,right_now},
    [{die_please,handle_info,2},
     {gen_server,handle_msg,5},
     {proc_lib,init_p_do_apply,3}]}
** exception error: no match of right hand side value right_now
     in function die_please:handle_info/2
     in call from gen_server:handle_msg/5
     in call from proc_lib:init_p_do_apply/3