From 978ccb1fc2de4abc2d0d6b89e664ea6d8da1c663 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 14 Nov 2011 15:39:45 +0100 Subject: Improve documentation on supervisor restart strategy --- system/doc/design_principles/sup_princ.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'system/doc/design_principles') diff --git a/system/doc/design_principles/sup_princ.xml b/system/doc/design_principles/sup_princ.xml index a432f9458b..5b8fd604c8 100644 --- a/system/doc/design_principles/sup_princ.xml +++ b/system/doc/design_principles/sup_princ.xml @@ -160,10 +160,13 @@ init(...) -> be restarted.

A permanent child process is always restarted. - A temporary child process is never restarted. + A temporary child process is never restarted + (not even when the supervisor's restart strategy + is rest_for_one or one_for_all and a sibling's + death causes the temporary process to be terminated). A transient child process is restarted only if it terminates abnormally, i.e. with another exit reason than - normal. + normal, shutdown or {shutdown,Term}. -- cgit v1.2.3