diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-09 15:58:33 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-08-09 15:58:33 +0100 |
| commit | e1ee5e143b3d83e44df8de637fa71434ec4c2431 (patch) | |
| tree | b64b17d590adf2cd85df77280572ac9baaca78b6 /src | |
| parent | 4ba0d184198d82c07fdcd73c321df397707ce2b2 (diff) | |
| download | rabbitmq-server-git-e1ee5e143b3d83e44df8de637fa71434ec4c2431.tar.gz | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervisor2.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index fb4c9b02bf..ecb2655f60 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) -> |
