rapid7/metasploit-framework — pull request #773 by mephos (2012-09-08 15:50:09+00:00)
Title: [posix meterpreter] create reaper thread as child of master thread

Move reaper thread creation . Otherelse, reaper thread is created in a "child" thread and could become child of meterpreter parent process (instead of meterpreter child) and not be reaped when exiting.