parameters: (self)
return_statement: return status
docstring: Wait for the subprocess to finish.
  
          Returns the exit code.
docstring_summary: Wait for the subprocess to finish.
docstring_tokens: Wait for the subprocess to finish .
function: def wait(self):
          '''Wait for the subprocess to finish.
  
          Returns the exit code.
          '''
          status = self.proc.wait()
          if status >= 0:
              self.exitstatus = status
              self.signalstatus = None
          else:
              self.exitstatus = None
              self.signalstatus = -status
          self.terminated = True
          return status
function_tokens: def wait ( self ) : status = self . proc . wait ( ) if status >= 0 : self . exitstatus = status self . signalstatus = None else : self . exitstatus = None self . signalstatus = - status self . terminated = True return status