def kill_all(self):
for pid in self.children:<EOL><INDENT>try:<EOL><INDENT>os.kill(pid, signal.SIGTRAP)<EOL><DEDENT>except OSError:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>self.join()<EOL>
kill all slaves and reap the monitor