Skip to content

Instantly share code, notes, and snippets.

@bookshelfdave
Created June 26, 2012 16:00
Show Gist options
  • Save bookshelfdave/2996683 to your computer and use it in GitHub Desktop.
Save bookshelfdave/2996683 to your computer and use it in GitHub Desktop.
Ranch ranch_conns_sup children
get_child_pids() ->
[Pid2 ||
{{ranch_listener_sup, _}, Pid, _Type, _Modules} <- supervisor:which_children(ranch_sup), is_pid(Pid),
{ranch_conns_sup,Pid1,_,_} <- supervisor:which_children(Pid),
{_,Pid2,_,_} <- supervisor:which_children(Pid1)].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment