Created
June 26, 2012 16:00
-
-
Save bookshelfdave/2996683 to your computer and use it in GitHub Desktop.
Ranch ranch_conns_sup children
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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