diff options
| author | Tim Watson <tim@rabbitmq.com> | 2012-11-30 11:01:16 +0000 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2012-11-30 11:01:16 +0000 |
| commit | cdd36abcd70e1a07fdd88fa1a454a7bb9ab406a5 (patch) | |
| tree | 79312d31b98974c6a7f13f6a22b38fb565ad4514 /src | |
| parent | 4e9705cbde44d7c683be725871792fff01cb8dcb (diff) | |
| download | rabbitmq-server-git-cdd36abcd70e1a07fdd88fa1a454a7bb9ab406a5.tar.gz | |
document addition of find_child/2
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervisor2.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index 251d0d510b..0da00e580d 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -3,7 +3,9 @@ %% %% 1) the module name is supervisor2 %% -%% 2) child specifications can contain, as the restart type, a tuple +%% 2) a find_child/2 utility function has been added +%% +%% 3) child specifications can contain, as the restart type, a tuple %% {permanent, Delay} | {transient, Delay} | {intrinsic, Delay} %% where Delay >= 0 (see point (4) below for intrinsic). The delay, %% in seconds, indicates what should happen if a child, upon being @@ -36,14 +38,14 @@ %% perspective it's a normal exit, whilst from supervisor's %% perspective, it's an abnormal exit. %% -%% 3) Added an 'intrinsic' restart type. Like the transient type, this +%% 4) Added an 'intrinsic' restart type. Like the transient type, this %% type means the child should only be restarted if the child exits %% abnormally. Unlike the transient type, if the child exits %% normally, the supervisor itself also exits normally. If the %% child is a supervisor and it exits normally (i.e. with reason of %% 'shutdown') then the child's parent also exits normally. %% -%% 4) normal, and {shutdown, _} exit reasons are all treated the same +%% 5) normal, and {shutdown, _} exit reasons are all treated the same %% (i.e. are regarded as normal exits) %% %% All modifications are (C) 2010-2012 VMware, Inc. |
