Wait until child process terminates
(self, timeout=None)
| 140 | self._popen.kill() |
| 141 | |
| 142 | def join(self, timeout=None): |
| 143 | ''' |
| 144 | Wait until child process terminates |
| 145 | ''' |
| 146 | self._check_closed() |
| 147 | assert self._parent_pid == os.getpid(), 'can only join a child process' |
| 148 | assert self._popen is not None, 'can only join a started process' |
| 149 | res = self._popen.wait(timeout) |
| 150 | if res is not None: |
| 151 | _children.discard(self) |
| 152 | |
| 153 | def is_alive(self): |
| 154 | ''' |
no test coverage detected