summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-24 15:18:57 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-24 15:18:57 +0100
commit2086f0e154c54ab5f179130660ef79f144dc9f7f (patch)
tree7905b6c32e9344faf613eb79b262e8046b5340be
parent630e9f87df0b55a11f41168280fab55c9c9d531e (diff)
downloadrabbitmq-server-2086f0e154c54ab5f179130660ef79f144dc9f7f.tar.gz
No infinity timeout, we could deadlock with the application controller on shutdown.
-rw-r--r--src/rabbit.erl2
-rw-r--r--src/rabbit_nodes.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 3cfa21ba..2a70f016 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -393,7 +393,7 @@ await_startup() ->
status() ->
S1 = [{pid, list_to_integer(os:getpid())},
- {running_applications, application:which_applications(infinity)},
+ {running_applications, application:which_applications()},
{os, os:type()},
{erlang_version, erlang:system_info(system_version)},
{memory, rabbit_vm:memory()}],
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl
index 5640f12a..b52d36e3 100644
--- a/src/rabbit_nodes.erl
+++ b/src/rabbit_nodes.erl
@@ -96,7 +96,7 @@ cookie_hash() ->
base64:encode_to_string(erlang:md5(atom_to_list(erlang:get_cookie()))).
is_running(Node, Application) ->
- case rpc:call(Node, application, which_applications, [infinity]) of
+ case rpc:call(Node, application, which_applications, []) of
{badrpc, _} -> false;
Apps -> proplists:is_defined(Application, Apps)
end.