[erlang-questions] How do I get the atom under which a process is registered?

Hynek Vychodil hynek@REDACTED
Tue Dec 15 11:43:41 CET 2009


See http://www.erlang.org/doc/man/erlang.html#process_info-2
and 'registered_name' Item

On Tue, Dec 15, 2009 at 11:33 AM, Michael Turner <leap@REDACTED> wrote:
>
> You can register processes under atoms, which I like very much.  (Maybe
> too much: it's a little like having global variables.) But I haven't
> found a function like "registered_under/1" that, given a pid, returns
> an atom if the process is registered with one.  (It can throw an
> exception or return false, if it's not registered.  I don't really
> care which.)
>
> I can see how to write a function like that, if necessary.  I'm just
> wondering if such a function already exists.  Maybe I'm looking in the
> wrong place, or maybe it's undocumented.
>
> -michael turner
>
>
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>



-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill
your boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com


More information about the erlang-questions mailing list