mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Use infinite receive (thanks Hakan Mattsson)
This commit is contained in:
parent
300a4ac22e
commit
153aabee9b
1 changed files with 4 additions and 4 deletions
|
@ -191,7 +191,9 @@ show_info_maybe_halt(O, Opts, F) ->
|
|||
case proplists:get_bool(O, Opts) of
|
||||
true ->
|
||||
F(),
|
||||
halt(0);
|
||||
halt(0),
|
||||
%% workaround to delay exit until all output is written
|
||||
receive after infinity -> ok end;
|
||||
false ->
|
||||
false
|
||||
end.
|
||||
|
@ -234,9 +236,7 @@ xref Run cross reference analysis
|
|||
help Show the program options
|
||||
version Show version information
|
||||
">>,
|
||||
io:put_chars(S),
|
||||
%% workaround to delay exit until all output is written
|
||||
timer:sleep(300).
|
||||
io:put_chars(S).
|
||||
|
||||
%%
|
||||
%% options accepted via getopt
|
||||
|
|
Loading…
Reference in a new issue