parameters: (self, request, client_address)
docstring: Fork a new subprocess to process the request.
docstring_summary: Fork a new subprocess to process the request.
docstring_tokens: Fork a new subprocess to process the request .
function: def process_request(self, request, client_address):
          """Fork a new subprocess to process the request."""
          self.collect_children()
          pid = os.fork()
          if pid:
              # Parent process
              if self.active_children is None:
                  self.active_children = []
              self.active_children.append(pid)
              self.close_request(request) #close handle in parent process
              return
          else:
              # Child process.
              # This must never return, hence os._exit()!
              try:
                  self.finish_request(request, client_address)
                  self.shutdown_request(request)
                  os._exit(0)
              except:
                  try:
                      self.handle_error(request, client_address)
                      self.shutdown_request(request)
                  finally:
                      os._exit(1)
function_tokens: def process_request ( self , request , client_address ) : self . collect_children ( ) pid = os . fork ( ) if pid : # Parent process if self . active_children is None : self . active_children = [ ] self . active_children . append ( pid ) self . close_request ( request ) #close handle in parent process return else : # Child process. # This must never return, hence os._exit()! try : self . finish_request ( request , client_address ) self . shutdown_request ( request ) os . _exit ( 0 ) except : try : self . handle_error ( request , client_address ) self . shutdown_request ( request ) finally : os . _exit ( 1 )