aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/design_principles/sup_princ.xml
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2011-04-13 15:32:55 +0200
committerSiri Hansen <[email protected]>2011-04-13 15:32:55 +0200
commit1a8341595c1bca1f46aa0afee8e5f01675379980 (patch)
tree61d43ebb1e4b2250729ee53048c3258010921144 /system/doc/design_principles/sup_princ.xml
parent098aa2ad54cfa81c07c49ed2a45d38e58bd3ecef (diff)
downloadotp-1a8341595c1bca1f46aa0afee8e5f01675379980.tar.gz
otp-1a8341595c1bca1f46aa0afee8e5f01675379980.tar.bz2
otp-1a8341595c1bca1f46aa0afee8e5f01675379980.zip
Add terminate_child(Sup, Pid) for simple_one_for_one
Diffstat (limited to 'system/doc/design_principles/sup_princ.xml')
-rw-r--r--system/doc/design_principles/sup_princ.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/doc/design_principles/sup_princ.xml b/system/doc/design_principles/sup_princ.xml
index 067fd31961..2748f21bbe 100644
--- a/system/doc/design_principles/sup_princ.xml
+++ b/system/doc/design_principles/sup_princ.xml
@@ -4,7 +4,7 @@
<chapter>
<header>
<copyright>
- <year>1997</year><year>2009</year>
+ <year>1997</year><year>2011</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
@@ -335,6 +335,12 @@ supervisor:start_child(Pid, [id1])</code>
<c>apply(call, start_link, []++[id1])</c>, or actually:</p>
<code type="none">
call:start_link(id1)</code>
+ <p>A child under a <c>simple_one_for_one</c> supervisor can be terminated
+ with</p>
+ <code type="none">
+supervisor:terminate_child(Sup, Pid)</code>
+ <p>where <c>Sup</c> is the pid, or name, of the supervisor and
+ <c>Pid</c> is the pid of the child.</p>
</section>
<section>