def wait(self):
        """Wait for child process to terminate. Set and return returncode attribute."""
        while self._worker is None:
            # wait() before self._run()
            time.sleep(0.1)
        self._worker.join()
        return self.poll()
Wait for child process to terminate. Set and return returncode attribute.
lib/mlpatches/modules/subprocess.py