parameters: (self)
return_statement: return self.exitstatus
docstring: This waits until the child exits. This is a blocking call. This will
          not read any data from the child, so this will block forever if the
          child has unread output and has terminated. In other words, the child
          may have printed output then called exit(); but, technically, the child
          is still alive until its output is read.
docstring_summary: This waits until the child exits. This is a blocking call. This will
          not read any data from the child, so this will block forever if the
          child has unread output and has terminated. In other words, the child
          may have printed output then called exit(); but, technically, the child
          is still alive until its output is read.
docstring_tokens: This waits until the child exits . This is a blocking call . This will not read any data from the child so this will block forever if the child has unread output and has terminated . In other words the child may have printed output then called exit () ; but technically the child is still alive until its output is read .
function: def wait(self):
          """This waits until the child exits. This is a blocking call. This will
          not read any data from the child, so this will block forever if the
          child has unread output and has terminated. In other words, the child
          may have printed output then called exit(); but, technically, the child
          is still alive until its output is read. """
  
          if self.isalive():
              pid, status = os.waitpid(self.pid, 0)
          else:
              raise ExceptionPexpect('Cannot wait for dead child process.')
          self.exitstatus = os.WEXITSTATUS(status)
          if os.WIFEXITED(status):
              self.status = status
              self.exitstatus = os.WEXITSTATUS(status)
              self.signalstatus = None
              self.terminated = True
          elif os.WIFSIGNALED(status):
              self.status = status
              self.exitstatus = None
              self.signalstatus = os.WTERMSIG(status)
              self.terminated = True
          elif os.WIFSTOPPED(status):
              raise ExceptionPexpect(
                  'Wait was called for a child process that is stopped. This is not supported. Is some other process attempting job control with our child pid?')
          return self.exitstatus
function_tokens: def wait ( self ) : if self . isalive ( ) : pid , status = os . waitpid ( self . pid , 0 ) else : raise ExceptionPexpect ( 'Cannot wait for dead child process.' ) self . exitstatus = os . WEXITSTATUS ( status ) if os . WIFEXITED ( status ) : self . status = status self . exitstatus = os . WEXITSTATUS ( status ) self . signalstatus = None self . terminated = True elif os . WIFSIGNALED ( status ) : self . status = status self . exitstatus = None self . signalstatus = os . WTERMSIG ( status ) self . terminated = True elif os . WIFSTOPPED ( status ) : raise ExceptionPexpect ( 'Wait was called for a child process that is stopped. This is not supported. Is some other process attempting job control with our child pid?' ) return self . exitstatus