Browse Source

checking epmd is start without a crash

pull/2278/head
Shamis Shukoor 5 years ago
committed by GitHub
parent
commit
8750f8cf98
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/rebar_dist_utils.erl

+ 5
- 5
src/rebar_dist_utils.erl View File

@ -51,13 +51,13 @@ find_options(State) ->
%%% PRIVATE %%%
%%%%%%%%%%%%%%%
start(Name, Type, Opts) ->
case dist_up(net_kernel:start([Name, Type])) of
false ->
start_epmd(),
dist_up(net_kernel:start([Name, Type])) orelse warn_dist();
true ->
case erl_epmd:names() of
{error, _} ->
start_epmd();
{ok, _} ->
ok
end,
dist_up(net_kernel:start([Name, Type])) orelse warn_dist(),
setup_cookie(Opts).
dist_up({error,{{shutdown,{_,net_kernel,{'EXIT',nodistribution}}},_}}) -> false;

Loading…
Cancel
Save