[erlang-questions] What is shutdown_error?

Siri Hansen <>
Wed Jun 6 10:25:29 CEST 2012


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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120606/27d383ea/attachment.html>


More information about the erlang-questions mailing list