Explorar el Código

checking epmd is start without a crash

pull/2278/head
Shamis Shukoor hace 5 años
cometido por GitHub
padre
commit
8750f8cf98
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. +5
    -5
      src/rebar_dist_utils.erl

+ 5
- 5
src/rebar_dist_utils.erl Ver fichero

@ -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;

Cargando…
Cancelar
Guardar