:init.get_status is incorrectly reporting {:starting, :started}

HI all.

I encountered this issue that I am not sure if it’s a feature or a bug.

I am starting a node in this way.
elixir --name node@127.0.0.1 --cookie test -S mix phx.server

The node starts normally and everything is running as it should.
But when I rpc call to the node to execute :init.get_status/0, then I get {:starting, started}.

Note that this issue does not happen when starting a node with:
iex --name node@127.0.0.1 --cookie test -S mix phx.server
I get {:started, :started}

Thanks in advance for the clarification.

This issue was fixed in Elixir master branch.

1 Like