diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-04-04 16:30:23 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-04-04 16:39:05 +0200 |
commit | 153aabee9b2fb6556c033c4380f84c458e376d5e (patch) | |
tree | e93a048b42880d7fbc3f068e7bb69a991838b994 /src | |
parent | 300a4ac22e3b8ca1057e2c703de9b88154d32037 (diff) |
Use infinite receive (thanks Hakan Mattsson)
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar.erl b/src/rebar.erl index b83a1f7..6dff4e5 100644 --- a/src/rebar.erl +++ b/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 |