rapid7/metasploit-framework — pull request #1128 by kernelsmith (2012-12-05 19:19:43+00:00)
Title: adds rudimentary validity checking to pids for meterp kill

addresses redmine https://dev.metasploit.com/redmine/issues/7223, but
may not be a truly encompassing solution. 'good bandaid' as egypt put
it. Stubs out is_valid_pid? so more robust validity checking can be added
if desired. I actually have that code around here already and will submit
when I also submit suspenders post mod as a core meterp command per
egypt's suggestion from a while ago