[erlang-questions] erlang:process_info for global processes

Adam Kövári kovariadam@REDACTED
Sat Sep 19 17:01:04 CEST 2015


Hello

I noticed erlang:process_info(<PID of a global process>, registered_name) returns []. Is this expected? What is the reason this doesn’t work for globally registered processes? Is there a built in function which would work with global processes?


Example:

6> global:registered_names().
[test_dumb1,...]
7>
7> Pid = global:whereis_name(test_dumb1).
<0.306.0>
8> erlang:process_info(Pid, registered_name).
[]


Thanks
Adam Kovari




More information about the erlang-questions mailing list