From 1a8341595c1bca1f46aa0afee8e5f01675379980 Mon Sep 17 00:00:00 2001
From: Siri Hansen
Date: Wed, 13 Apr 2011 15:32:55 +0200
Subject: Add terminate_child(Sup, Pid) for simple_one_for_one
---
system/doc/design_principles/sup_princ.xml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
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 @@
- 19972009
+ 19972011
Ericsson AB. All Rights Reserved.
@@ -335,6 +335,12 @@ supervisor:start_child(Pid, [id1])
apply(call, start_link, []++[id1]), or actually:
call:start_link(id1)
+ A child under a simple_one_for_one supervisor can be terminated
+ with
+
+supervisor:terminate_child(Sup, Pid)
+ where Sup is the pid, or name, of the supervisor and
+ Pid is the pid of the child.