def terminate(self): with self._lock: if self._waited(): return self._send_term_to_process() pid = self._impl.pid def poll_zombie(): return True if _get_process_state(pid) == 'Z' else None _wait(poll_zombie, timeout=self.BEFORE_KILL_DELAY) self._send_kill_to_group()
def wait(self, timeout=None, deadline=None): return _wait(self.poll, timeout, deadline)