[erlang-questions] Question about register/2
Arie van Wingerden
Wed Apr 6 14:40:29 CEST 2011
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions