Wait until child process terminates
(self, timeout=None)
| 147 | self._popen.kill() |
| 148 | |
| 149 | def join(self, timeout=None): |
| 150 | ''' |
| 151 | Wait until child process terminates |
| 152 | ''' |
| 153 | self._check_closed() |
| 154 | assert self._parent_pid == os.getpid(), 'can only join a child process' |
| 155 | assert self._popen is not None, 'can only join a started process' |
| 156 | res = self._popen.wait(timeout) |
| 157 | if res is not None: |
| 158 | _children.discard(self) |
| 159 | |
| 160 | def is_alive(self): |
| 161 | ''' |
no test coverage detected