<div dir="ltr"><div class="gmail_extra">There it is, in application_master.erl</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font face="monospace, monospace">    kill_children(Children) -></font></div><div class="gmail_extra"><font face="monospace, monospace">        lists:foreach(fun(Pid) -> exit(Pid, kill) end, Children),</font></div><div class="gmail_extra"><font face="monospace, monospace">        kill_all_procs().</font></div></div><div class="gmail_extra"><font face="monospace, monospace"><br></font></div><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra"><font face="monospace, monospace">    kill_all_procs() -></font></div><div class="gmail_extra"><font face="monospace, monospace">        kill_all_procs_1(processes(), self(), 0).</font></div><div class="gmail_extra"><font face="monospace, monospace"><br></font></div><div class="gmail_extra"><font face="monospace, monospace">    kill_all_procs_1([Self|Ps], Self, N) -></font></div><div class="gmail_extra"><font face="monospace, monospace">        kill_all_procs_1(Ps, Self, N);</font></div><div class="gmail_extra"><font face="monospace, monospace">    kill_all_procs_1([P|Ps], Self, N) -></font></div><div class="gmail_extra"><font face="monospace, monospace">        case process_info(P, group_leader) of</font></div><div class="gmail_extra"><font face="monospace, monospace">    <span style="white-space:pre">        </span>{group_leader,Self} -></font></div><div class="gmail_extra"><font face="monospace, monospace">    <span style="white-space:pre">  </span>    exit(P, kill),</font></div><div class="gmail_extra"><font face="monospace, monospace">    <span style="white-space:pre">       </span>    kill_all_procs_1(Ps, Self, N+1);</font></div><div class="gmail_extra"><font face="monospace, monospace">    <span style="white-space:pre">     </span>_ -></font></div><div class="gmail_extra"><font face="monospace, monospace">    <span style="white-space:pre">    </span>    kill_all_procs_1(Ps, Self, N)</font></div><div class="gmail_extra"><font face="monospace, monospace">        end;</font></div><div class="gmail_extra"><font face="monospace, monospace">    kill_all_procs_1([], _, 0) -> ok;</font></div><div class="gmail_extra"><font face="monospace, monospace">    kill_all_procs_1([], _, _) -> kill_all_procs().</font></div><div class="gmail_extra"><br></div><div class="gmail_extra">I read this file from top to bottom in the last months to do some groundwork, perhaps it was there that I saw the grouping trick instead of reading it in prose.</div><div class="gmail_extra"><br></div></div></div></div>