September 2013
Intermediate to advanced
548 pages
12h 25m
English
Sometimes we don’t want all our linked process to die, and we want
to stop the propagation of errors through the system. The following
figure illustrates this; here all linked process up to P3 die:

To achieve this, assume that P3 has evaluated
process_flag(trap_exit, true) and become a system
process (meaning that it can trap exit signals). This is shown
with a double-circle border on the right side of the
figure. After P9 crashed, the propagation of errors
stopped at P3, so P1 and P3 did not
die. This is shown on the right side of the figure.
P3 functions as a firewall, stopping errors from propagating to other processes ...
Read now
Unlock full access