From 03725bf81ed08ea1a65bc76acd840f4d646bec4f Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Wed, 11 Dec 2019 11:14:58 +0100 Subject: [PATCH] Fix epmd start on windows Windows does not have the same quoting rules as Unix so we need to use platform independent quoting. Also for os:cmd like operations we do not expect the program to read any input so in order for it to work on windows we should put -noinput there. --- src/rebar_dist_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_dist_utils.erl b/src/rebar_dist_utils.erl index 5de858ee..366c9954 100644 --- a/src/rebar_dist_utils.erl +++ b/src/rebar_dist_utils.erl @@ -67,7 +67,7 @@ start_epmd() -> %% Indirectly boot EPMD through calling Erlang so that we don't risk %% attaching it to the current proc ?CONSOLE("Attempting to start epmd...", []), - os:cmd("erl -sname a -eval 'halt(0).'"). + os:cmd("erl -sname a -noinput -eval \"halt(0).\""). warn_dist() -> ?ERROR("Erlang Distribution failed, falling back to nonode@nohost.", []).