summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-08-09 17:10:19 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-08-09 17:10:19 +0100
commit41babd9f15696db9dff4c1610fdf650f82a61e3d (patch)
tree5eaebe34bed70519a48aa2380ede20e4fe84e21a /src
parentc07d794336faaf65da3a3f3cc8e00150cb6fe95e (diff)
downloadrabbitmq-server-git-41babd9f15696db9dff4c1610fdf650f82a61e3d.tar.gz
Arbitrarily decide to make the channel_sup_sup the very first thing that gets started and thus the last that gets stopped
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_connection_sup.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_connection_sup.erl b/src/rabbit_connection_sup.erl
index f097f80a77..5993044c5e 100644
--- a/src/rabbit_connection_sup.erl
+++ b/src/rabbit_connection_sup.erl
@@ -41,16 +41,16 @@
start_link() ->
{ok, SupPid} = supervisor2:start_link(?MODULE, []),
- {ok, Collector} =
- supervisor2:start_child(
- SupPid,
- {collector, {rabbit_queue_collector, start_link, []},
- intrinsic, ?MAX_WAIT, worker, [rabbit_queue_collector]}),
{ok, ChannelSupSupPid} =
supervisor2:start_child(
SupPid,
{channel_sup_sup, {rabbit_channel_sup_sup, start_link, []},
intrinsic, infinity, supervisor, [rabbit_channel_sup_sup]}),
+ {ok, Collector} =
+ supervisor2:start_child(
+ SupPid,
+ {collector, {rabbit_queue_collector, start_link, []},
+ intrinsic, ?MAX_WAIT, worker, [rabbit_queue_collector]}),
{ok, _ReaderPid} =
supervisor2:start_child(
SupPid,