Hi,<br><br><div class="gmail_quote">On Wed, Apr 6, 2011 at 14:40, Arie van Wingerden <span dir="ltr"><<a href="mailto:xapwing@gmail.com">xapwing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>when I issue register(id, spawn aFun) and id already is associated with some process, the function fails.</div><div><br></div><div>What disturbs me is that the check of id already being taken for another pid, might take place *after* the spawn has been executed.</div>


<div>Hence a "ghost" process is running.</div><div><br></div><div>Is this the way it works? And how is this mostly solved?</div></blockquote><div><br></div><div>The solution is to let the spawned process register itself right after starting. If that fails, just let it die and theres is no ghost-process anymore.</div>

<div><br></div><div>regards,</div><div>Vlad </div></div>