<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Re: SV: Killing Supervisor</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText4539 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>But still the higher level
supervisor will see this as that the</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>child-supervisor you just
terminated has terminated due to a fault.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>It will try to restart it according
to the type (temporary, transient</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>or permenant) and restart
intensity.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>If one wants to get rid of
children, the supervisor API</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>supervisor:terminate_child/2 should
be used.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2><A
href="http://www.erlang.se/doc/doc-5.4.13/lib/stdlib-1.13.12/doc/html/index.html">http://www.erlang.se/doc/doc-5.4.13/lib/stdlib-1.13.12/doc/html/index.html</A></FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Best regards,</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Lennart</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" color=#000000
size=2></FONT> </DIV></DIV>
<DIV id=idSignature73061 dir=ltr>
<DIV><FONT face="Courier New" color=#000000
size=2>-------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000 size=2>Lennart
Ohman
phone : +46-8-587 623 27</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Sjöland & Thyselius Telecom
AB cellular: +46-70-552 6735</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Sehlstedtsgatan
6
fax : +46-8-667 8230</FONT></DIV>
<DIV><FONT face="Courier New" size=2>SE-115 28 STOCKHOLM,
SWEDEN email : <A
href="mailto:lennart.ohman@st.se">lennart.ohman@st.se</A></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Från:</B> owner-erlang-questions@erlang.org genom
Samuel Rivas<BR><B>Skickat:</B> on 2006-04-26 16:31<BR><B>Till:</B>
erlang-questions@erlang.org<BR><B>Ämne:</B> Re: SV: Killing
Supervisor<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Lennart Öhman wrote:<BR>> If you simply do
exit(Pid,kill) on the supervisor, it will not<BR>> be given
the chance of terminating its children in an ordered<BR>>
way.<BR> <BR> Calling exit(SupervisorPid, shutdown) in the
supervisor's parent<BR>process would do the
trick.<BR><BR>Regards<BR>--<BR>
Samuel<BR></FONT></P></DIV>
</BODY>
</HTML>