Error Handling Semantics

In this section, you’ll learn about the semantics of interprocess error handling. You’ll see some new terms that you’ll come across later in the chapter. The best way to understand error handing is to quickly read through the definitions and then skip to the next sections for a more intuitive understanding of the concepts involved. You can always refer to this section if you need to do so.

Processes

There are two types of processes: normal processes and system processes. spawn creates a normal process. A normal process can become a system process by evaluating the BIF process_flag(trap_exit, true).

Links

Processes can be linked. If the two processes A and B are linked and A terminates for any reason, an error signal ...

Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.