summaryrefslogtreecommitdiff
path: root/src/supervisor2.erl
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2012-11-29 12:58:40 +0000
committerTim Watson <tim@rabbitmq.com>2012-11-29 12:58:40 +0000
commit854b886d2e1f9f905abba6838b54dee61747ed8a (patch)
tree79d999e729f2504978dbbbe7358900f20bed5205 /src/supervisor2.erl
parent0d619d9d9c4eaa5c4477f41aaf4818ceaab0b9c6 (diff)
downloadrabbitmq-server-854b886d2e1f9f905abba6838b54dee61747ed8a.tar.gz
explain why we're not using lists:keyfind/3
Diffstat (limited to 'src/supervisor2.erl')
-rw-r--r--src/supervisor2.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index 76dc4e83..8a47c67d 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -780,6 +780,7 @@ restart_child(Pid, Reason, #state{children = [Child]} = State) when ?is_simple(S
restart_child(Pid, Reason, State) ->
Children = State#state.children,
+ %% we still support >= R12-B3 in which lists:keyfind/3 doesn't exist
case lists:keysearch(Pid, #child.pid, Children) of
{value, Child} ->
RestartType = Child#child.restart_type,