AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

:erlang.process_info(pid, :registered_name) crashes/not implemented.

Open petermm opened this issue 1 year ago • 0 comments

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

petermm avatar Sep 26 '24 18:09 petermm