code: def stop_log_child(self):
          '''Stop the logging child process.'''
          if self.log_fd:
              os.close(self.log_fd)
              self.log_fd = None
          if self.log_child:
              try:
                  self.debug('children', 'stopping log child with pid {0}'
                             .format(self.log_child))
                  os.kill(self.log_child, signal.SIGTERM)
                  os.waitpid(self.log_child, 0)
              except OSError, e:
                  if e.errno == errno.ESRCH or e.errno == errno.ECHILD:
                      # already gone
                      pass
                  else:
                      raise
              self.log_child = Nonf stop_log_child(self):
          '''Stop the logging child process.'''
          if self.log_fd:
              os.close(self.log_fd)
              self.log_fd = None
          if self.log_child:
              try:
                  self.debug('children', 'stopping log child with pid {0}'
                             .format(self.log_child))
                  os.kill(self.log_child, signal.SIGTERM)
                  os.waitpid(self.log_child, 0)
              except OSError, e:
                  if e.errno == errno.ESRCH or e.errno == errno.ECHILD:
                      # already gone
                      pass
                  else:
                      raise
              self.log_child = None
docs: Stop the logging child process.