[erlang-questions] slave:start/3 time out when EUnit started with ERL_FLAGS

George Catalin Serbanut <>
Wed Sep 7 10:34:02 CEST 2011


Try also "-s init stop" at the end of your commends. That will ensure
control release after the process is consumed.

Cheers,
CGS



2011/9/7 Ulf Wiger <>

>
> On 7 Sep 2011, at 10:14, Ignas Vyšniauskas wrote:
>
> bug: compile
>    EUNIT="verbose" ERL_FLAGS="-sname foobar" erl -s eunit test foo
>
>
> From the init(3) man page on the '-s' flag:
>
> "The functions are executed sequentially in an initialization process,
> which then terminates normally and passes control to the user. This means
> that a -s call which does not return will block further processing; to avoid
> this, use some variant of spawn in such cases."
>
> eunit:test/1 runs to completion, blocking until the tests are done.
> Therefore, it can't be used directly with the -s flag.
>
> BR,
> Ulf W
>
> Ulf Wiger, CTO, Erlang Solutions, Ltd.
> http://erlang-solutions.com
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110907/8fd777b6/attachment.html>


More information about the erlang-questions mailing list