Browse Source

Merge pull request #1178 from kalta/fix-shell-startup

Fix shell node startup
pull/1188/head
Fred Hebert 9 years ago
parent
commit
5ccaaa8da2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/rebar_prv_shell.erl

+ 4
- 0
src/rebar_prv_shell.erl View File

@ -108,6 +108,10 @@ shell(State) ->
simulate_proc_lib(),
true = register(rebar_agent, self()),
{ok, GenState} = rebar_agent:init(State),
%% Hack to fool the init process into thinking we have stopped and the normal
%% node start process can go on. Without it, init:get_status() always return
%% '{starting, started}' instead of '{started, started}'
init ! {'EXIT', self(), normal},
gen_server:enter_loop(rebar_agent, [], GenState, {local, rebar_agent}, hibernate).
info() ->

Loading…
Cancel
Save