Supervisor.erl erroreously reports error when child exits with normal during shutdown

Matthew Sackman <>
Thu Aug 12 13:32:18 CEST 2010


(You can guess what I'm hacking on atm...)

In supervisor, when it terminates a child, if that child happens to have
exited fractionally early, with normal, the supervisor reports this as
an error.

For permanent children, that's likely the right thing to do, but for all
other types of children it's wrong and leads to polluted logs. Both
temporary and transient children do not get restarted on normal
self-destruction, and nor do they get logged about. Just because they
happen to destruct as the supervisor is trying to stop them shouldn't
alter this.

Diff attached.

Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: supervisor.patch
Type: text/x-diff
Size: 879 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20100812/c01801aa/attachment.bin>


More information about the erlang-bugs mailing list