소스 검색

Use infinite receive (thanks Hakan Mattsson)

pull/3/head
Tuncer Ayaz 14 년 전
부모
커밋
153aabee9b
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      src/rebar.erl

+ 4
- 4
src/rebar.erl 파일 보기

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

불러오는 중...
취소
저장