SV: SV: Killing Supervisor

Lennart Öhman <>
Wed Apr 26 16:51:37 CEST 2006


Hi,
 
But still the higher level supervisor will see this as that the
child-supervisor you just terminated has terminated due to a fault.
It will try to restart it according to the type (temporary, transient
or permenant) and restart intensity.
 
If one wants to get rid of children, the supervisor API
supervisor:terminate_child/2 should be used.
http://www.erlang.se/doc/doc-5.4.13/lib/stdlib-1.13.12/doc/html/index.html
 
Best regards,
Lennart
 
 
-------------------------------------------------------------
Lennart Ohman                   phone   : +46-8-587 623 27
Sjöland & Thyselius Telecom AB  cellular: +46-70-552 6735
Sehlstedtsgatan 6               fax     : +46-8-667 8230
SE-115 28 STOCKHOLM, SWEDEN     email   : 

________________________________

Från:  genom Samuel Rivas
Skickat: on 2006-04-26 16:31
Till: 
Ämne: Re: SV: Killing Supervisor



Lennart Öhman wrote:
>    If you simply do exit(Pid,kill) on the supervisor, it will not
>    be given the chance of terminating its children in an ordered
>    way.
 
  Calling exit(SupervisorPid, shutdown) in the supervisor's parent
process would do the trick.

Regards
--
        Samuel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060426/28133230/attachment.html>


More information about the erlang-questions mailing list