Is there a way to verify that an erlang process has been indeed hibernated.
erlang:process_info/1
doesn't seem to provide this information and I can't think of anything else which might.
Its current function should be erlang:hibernate/3
.
1> erlang:process_info(Pid, current_function).
{current_function,{erlang, hibernate, 3}}
Here is how to do the same in Elixir:
iex(2)> :erlang.process_info(pid, :current_function)
{:current_function, {:erlang, :hibernate, 3}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With