code: def stop_all_children(self):
          '''Kill all workers.'''
          # There's an unfortunate race condition if we try to log this
          # case: we can't depend on the logging child actually receiving
          # the log message before we kill it off.  C'est la vie...
          self.stop_log_child()
          for pid in self.children:
              try:
                  os.kill(pid, signal.SIGTERM)
                  os.waitpid(pid, 0)
              except OSError, e:
                  if e.errno == errno.ESRCH or e.errno == errno.ECHILD:
                      # No such process
                      pass
                  else:
                      raisf stop_all_children(self):
          '''Kill all workers.'''
          # There's an unfortunate race condition if we try to log this
          # case: we can't depend on the logging child actually receiving
          # the log message before we kill it off.  C'est la vie...
          self.stop_log_child()
          for pid in self.children:
              try:
                  os.kill(pid, signal.SIGTERM)
                  os.waitpid(pid, 0)
              except OSError, e:
                  if e.errno == errno.ESRCH or e.errno == errno.ECHILD:
                      # No such process
                      pass
                  else:
                      raise
docs: Kill all workers.