|
Re: catching errors from linked processes: simplest way?: msg#00335lang.erlang.general
Hi, glad you found a solution you are satisfies with. Regarding starting an application, or as you put is, the top-most supervisor of that supervision tree: The idea in OTP is that we make a difference depending on in which context a "member process" terminates. During their start-phases (before all processes come past their init-phases (leaving the function named init)): Then you in the sence of making the function call to the start-function will get an error-return value (not an exit or similar). Such errors are referred to as start-errors and reported as such if you run SASL. No process is allowed to terminate during the init-phase. After the successful start-up: Then your start function-call has already returned {ok,Pid}. If you used start-link or otherwised linked yourself to that supervisor, you will get the exit-signal 'shutdown', indicating that the supervisor terminated nicely (i.e cleaning up properly). Processes may also terminate for "natural" reasons. OTP differs between illegal and legal terminations. The permanence of a process determines whether it is legal or illegal (a permanent process may never terminate for instance). Then you can of ocurse also have the scenario where you set the restart intensity of your supervisor(s), to allow restarts before it/they give up and terminate them self/ev. /Lennart Chris Pressey wrote: On Tue, 22 Apr 2003 18:23:39 -0400 -- ------------------------------------------------------------- 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@xxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: trouble with files bigger than 4GB: 00335, Daniel Solaz |
|---|---|
| Next by Date: | string conversion, format functions: 00335, HP Wei |
| Previous by Thread: | Re: catching errors from linked processes: simplest way?i: 00335, Chris Pressey |
| Next by Thread: | Re: catching errors from linked processes: simplest way?: 00335, Raimo Niskanen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |