diff options
author | Tomas Pihl <[email protected]> | 2012-07-22 13:01:43 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-10-05 11:25:06 +0200 |
commit | c2b6342cb57df5925acbacff0aea74358c9a5ffb (patch) | |
tree | 26210740332aebc41f66ce304b06033b9b65c50a /lib/stdlib/doc | |
parent | a24c49aec663f19092cf0d2062af19523666d291 (diff) | |
download | otp-c2b6342cb57df5925acbacff0aea74358c9a5ffb.tar.gz otp-c2b6342cb57df5925acbacff0aea74358c9a5ffb.tar.bz2 otp-c2b6342cb57df5925acbacff0aea74358c9a5ffb.zip |
Have supervisor send errors up the chain
If a child fails to start, supervisor relies upon error_logger which does not
work when IO is inhibited. Instead pass the error up the chain and let someone
else use a proper Reason for any possible printouts.
Diffstat (limited to 'lib/stdlib/doc')
-rw-r--r-- | lib/stdlib/doc/src/supervisor.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/doc/src/supervisor.xml b/lib/stdlib/doc/src/supervisor.xml index f9a5e245b4..1a64b7a2af 100644 --- a/lib/stdlib/doc/src/supervisor.xml +++ b/lib/stdlib/doc/src/supervisor.xml @@ -295,7 +295,7 @@ child_spec() = {Id,StartFunc,Restart,Shutdown,Type,Modules} terminates with reason <c>Term</c>.</p> <p>If any child process start function fails or returns an error tuple or an erroneous value, the function returns - <c>{error,shutdown}</c> and the supervisor terminates all + <c>{error, {shutdown, Reason}}</c> and the supervisor terminates all started child processes and then itself with reason <c>shutdown</c>.</p> </desc> |