AtomVM
AtomVM copied to clipboard
:erlang.process_info(pid, :registered_name) crashes/not implemented.
While implementing GenServer.ex tests are done for:
{:ok, pid} = GenServer.start_link(Stack, [:hello], name: nil)
assert Process.info(pid, :registered_name) == {:registered_name, []}
It's already in exavmlib code base here https://github.com/atomvm/AtomVM/blob/22c0da49bc8d7ca693217299f67e441a2df78313/libs/exavmlib/lib/Process.ex#L347 but obviously a crashy code path.
named/registered processes are already implemented, so would be great with
:erlang.process_info(pid, :registered_name)
support