[erlang-questions] erlang:process_info for global processes
Adam Kövári
kovariadam@REDACTED
Sat Sep 19 19:45:24 CEST 2015
Thanks Steve.
> On 19.9.2015, at 18:49, Steve Vinoski <vinoski@REDACTED> wrote:
>
> I don't see an API function for what you want, but here's a hack to get it:
>
> 9> ets:lookup(global_pid_names, Pid).
> [{<0.306.0>,test_dumb1}]
>
> But this reaches into the internals of the global module and so isn't the best thing to do. Perhaps the global module needs a new lookup-by-pid or process_info exported function. Or then again, maybe there's a good reason it's not provided.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150919/ff9dc914/attachment.htm>
More information about the erlang-questions
mailing list