12.6 Links
Two processes can be linked to each other. A link between two processes Pid1 and Pid2 is created by Pid1 calling the BIF link(Pid2) (or conversely). There also exist a number of spawn_link BIFs, which spawn and link to a process in one operation.
Links are bidirectional and there can only be one link between two processes. Repeated calls to link(Pid) have no effect.
A link can be removed by calling the BIF unlink(Pid).
Links are used to monitor the behaviour of other processes, see Error Handling.