<br><div class="gmail_quote">On Thu, Apr 25, 2013 at 10:53 AM, Bengt Kleberg <span dir="ltr"><<a href="mailto:bengt.kleberg@ericsson.com" target="_blank">bengt.kleberg@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings,<br>
<br>
Should gen_server:start_link/3 return {error, Reason} if my init/1<br>
returns {stop, Reason}?<br>
</blockquote></div><br>Hey there!<br><br>gen_server:start_link/3 should return {error, Reason} only if init/1 fails with Reason.<br>In the case where init/1 returns {error, Reason} or ignore, the process that calls gen_server:start_link/3 should fail with Reason or ignore respectively.<br>
<br>Aggelos<br>