[erlang-questions] What is shutdown_error?

Ryan Flynn <>
Sat Jun 9 00:23:35 CEST 2012


Thank you :)

On Wed, Jun 6, 2012 at 4:25 AM, Siri Hansen <> wrote:

> sorry, forgot to copy the list
>
>
> 2012/6/6 Siri Hansen <>
>
>> shutdown_error is used by supervisor (and application_master) to inform
>> at something went a bit wrong during shutdown or a child. When shutting
>> down a child, supervisor will normally do exit(ChildPid,shutdown) and then
>> monitor the child to check the actual exit reason. If it terminates with
>> Reason /= shutdown, supervisor will report a shutdown_error.
>>
>> Also, if a child does not respond to supervisor's attempt of graceful
>> shutdown within the shutdown time specified in the child spec, then the
>> supervisor will kill it brutally and report a shutdown_error. This might be
>> what happened in your case, since the reason reported is 'killed'.
>>
>> Regards
>> /siri
>>
>> 2012/6/5 Ryan Flynn <>
>>
>>>  What is shutdown_error? I can't figure out what to make of
>>> shutdown_error; all I can find is a brief mention that it exists in sasl
>>> docs. Full error:
>>>
>>> Supervisor foo_sup had child foo_server started with
>>> foo_server:start_link() at <0.379.0> exit with reason killed in context
>>> shutdown_error
>>>
>>> Thanks in advance.
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>
>>>
>>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120608/3397b955/attachment.html>


More information about the erlang-questions mailing list