Wait until the process exits (or return immediately if it already has exited.
(self)
| 539 | self.start() |
| 540 | |
| 541 | def wait_for_exit(self): |
| 542 | """Wait until the process exits (or return immediately if it already has exited.""" |
| 543 | LOG.info('Waiting for exit: {0} (PID: {1})'.format( |
| 544 | ' '.join(self.cmd), self.get_pid())) |
| 545 | while self.__get_pid() is not None: |
| 546 | sleep(0.01) |
| 547 | |
| 548 | def kill_and_wait_for_exit(self, signal=SIGKILL): |
| 549 | """Kill the process and wait for it to exit""" |