catching errors from linked processes: simplest way?

Lennart Öhman lennart.ohman@REDACTED
Tue Apr 22 08:30:14 CEST 2003


Chris Pressey wrote:
> OK, so, I'm actually trying to write 'aggressively simple' code now,

Good! :-)

The "aggressive way" when having several processes is to have one (or
possibly several if it is a complicated system) process which supervises
the other(s). In this way you move all the error handling, if you need it
at all, away from the code implementing the logic.

You should then try to write the code in a way that the logic works fine
without the supervision (during normal input). The supervision is then
only an add-on to provide robustness.


Lennart Ohman                   phone   : +46-8-587 623 27
Sjoland & Thyselius Telecom AB  cellular: +46-70-552 6735
Sehlstedtsgatan 6               fax     : +46-8-667 8230
SE-115 28 STOCKHOLM, SWEDEN     email   : lennart.ohman@REDACTED

More information about the erlang-questions mailing list