[erlang-questions] Question about register/2

Arie van Wingerden xapwing@REDACTED
Wed Apr 6 14:40:29 CEST 2011


Hi,

when I issue register(id, spawn aFun) and id already is associated with some
process, the function fails.

What disturbs me is that the check of id already being taken for another
pid, might take place *after* the spawn has been executed.
Hence a "ghost" process is running.

Is this the way it works? And how is this mostly solved?

Regards,
   Arie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110406/de2e2ea5/attachment.htm>


More information about the erlang-questions mailing list