Skip to content

Commit

Permalink
Use proto_dist from config instead of always using default (inet_tcp)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>
  • Loading branch information
lemenkov committed Jul 15, 2016
1 parent babe073 commit ee36f22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rabbit_nodes.erl
Expand Up @@ -221,9 +221,11 @@ set_cluster_name(Name) ->
ensure_epmd() ->
{ok, Prog} = init:get_argument(progname),
ID = rabbit_misc:random(1000000000),
ProtoDist = application:get_env(kernel, proto_dist, inet_tcp),
Port = open_port(
{spawn_executable, os:find_executable(Prog)},
[{args, ["-sname", rabbit_misc:format("epmd-starter-~b", [ID]),
"-proto_dist", rabbit_misc:format("~p", [ProtoDist]),
"-noshell", "-eval", "halt()."]},
exit_status, stderr_to_stdout, use_stdio]),
port_shutdown_loop(Port).
Expand Down

0 comments on commit ee36f22

Please sign in to comment.