[erlang-questions] Avoiding crash dump when returning {stop, Reason} from a gen_server?

Roger Lipscombe roger@REDACTED
Tue Sep 16 13:20:05 CEST 2014


On 16 September 2014 12:14, Viacheslav V. Kovalev <kovyl2404@REDACTED> wrote:
> It looks like that you getting crash dumps because supervisor exhausts
> max restarts count when trying infinitely restart children, that
> stopping abnormally (from supervisor's point of view).

No. I get crash dumps for the *worker* whenever it stops with anything
other than 'normal' or 'shutdown'. I've not tried {shutdown, Term}
yet, though. If the restart frequency is exceeded, *then* I get a
crash dump for the supervisor.



More information about the erlang-questions mailing list