parameters: (self)
return_statement: return self.sts
docstring: Wait for and return the exit status of the child process.
docstring_summary: Wait for and return the exit status of the child process.
docstring_tokens: Wait for and return the exit status of the child process .
function: def wait(self):
          """Wait for and return the exit status of the child process."""
          if self.sts < 0:
              pid, sts = os.waitpid(self.pid, 0)
              # This used to be a test, but it is believed to be
              # always true, so I changed it to an assertion - mvl
              assert pid == self.pid
              self.sts = sts
          return self.sts
function_tokens: def wait ( self ) : if self . sts < 0 : pid , sts = os . waitpid ( self . pid , 0 ) # This used to be a test, but it is believed to be # always true, so I changed it to an assertion - mvl assert pid == self . pid self . sts = sts return self . sts