Try also "-s init stop" at the end of your commends. That will ensure control release after the process is consumed.<br><br>Cheers,<br>CGS<br><br><br><br><div class="gmail_quote">2011/9/7 Ulf Wiger <span dir="ltr"><<a href="mailto:ulf.wiger@erlang-solutions.com">ulf.wiger@erlang-solutions.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div class="im"><br><div><div>On 7 Sep 2011, at 10:14, Ignas Vyšniauskas wrote:</div>
<br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">bug: compile<br>
   EUNIT="verbose" ERL_FLAGS="-sname foobar" erl -s eunit test foo<br></span></blockquote><br></div></div><div>>From the init(3) man page on the '-s' flag:</div><div><br></div><div>"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."</div>
<div><br></div><div>eunit:test/1 runs to completion, blocking until the tests are done. Therefore, it can't be used directly with the -s flag.</div><div><br></div><div>BR,</div><div>Ulf W</div><br><font color="#888888"><div>

<div>Ulf Wiger, CTO, Erlang Solutions, Ltd.</div><div><a href="http://erlang-solutions.com" target="_blank">http://erlang-solutions.com</a></div><div><br></div><br>
</div>
<br></font></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>