Skip to content

Instantly share code, notes, and snippets.

@koolquark
Created May 4, 2018 14:01
Show Gist options
  • Save koolquark/5ac00c89c803c751fdb756b5b2f4746d to your computer and use it in GitHub Desktop.
Save koolquark/5ac00c89c803c751fdb756b5b2f4746d to your computer and use it in GitHub Desktop.
% Run in Erlang Shell
% See initial call, ancestors in process_info
ShellPid = self().
PFun = fun() -> Pid = self(), ShellPid ! [Pid,erlang:process_info(Pid)] end.
proc_lib:spawn(PFun).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment