How to find the supervisor of an OTP process?
Are there functions which would allow an OTP process to find the pid of its supervisor? The data is hidden in the process dictionary (of any process spawned with proc_lib ) under the entry '$ancestors' : 1> proc_lib:spawn(fun() -> timer:sleep(infinity) end). <0.33.0> 2> i(0,33,0). [{current_function,{timer,sleep,1}}, {initial_call,{proc_lib,init_p,3}}, {status,waiting}, {message_queue_len,0}, {messages,[]}, {links,[]}, {dictionary,[{'$ancestors',[<0.31.0>]}, {'$initial_call',{erl_eval,'-expr/5-fun-1-',0}}]}, {trap_exit,false}, {error_handler,error_handler}, {priority,normal}, {group_leader,<0