From e1caa3548a3496d98b65e67aaab5f8514f42bd42 Mon Sep 17 00:00:00 2001 From: Matthew Sackman Date: Mon, 9 Aug 2010 15:58:33 +0100 Subject: On reaching the max_restart_intensited, don't remove the child spec. Instead just blank out the child's pid, thus ensuring terminate works correctly even for simple_one_for_one_terminate --- src/supervisor2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supervisor2.erl b/src/supervisor2.erl index fb4c9b02..ecb2655f 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -555,7 +555,7 @@ restart(Child, State) -> {terminate, NState} -> report_error(shutdown, reached_max_restart_intensity, Child, State#state.name), - {shutdown, remove_child(Child, NState)} + {shutdown, state_del_child(Child, NState)} end. restart1(Child, State) -> -- cgit v1.2.1