def _wait(self):
if self.returncode is not None:
return self.returncode
- while self._registered:
- self.scheduler.iteration()
+ self._wait_loop()
return self.returncode
def unlock(self):
def _wait(self):
if self.returncode is not None:
return self.returncode
- while self._registered:
- self.scheduler.iteration()
+ self._wait_loop()
return self.returncode
def _output_handler(self, f, event):
def _wait(self):
if self.returncode is not None:
return self.returncode
-
- while self._registered:
- self.scheduler.iteration()
-
+ self._wait_loop()
if self.returncode is None:
self.returncode = os.EX_OK
-
return self.returncode
def _input_handler(self, fd, event):
def _wait(self):
if self.returncode is not None:
return self.returncode
-
- while self._registered:
- self.scheduler.iteration()
-
+ self._wait_loop()
self.returncode = os.EX_OK
return self.returncode