Terminate the process if it is still running.
(self)
| 45 | return t |
| 46 | |
| 47 | def terminate(self): |
| 48 | """Terminate the process if it is still running.""" |
| 49 | if self.process.poll() is None: |
| 50 | self.process.terminate() |
| 51 | |
| 52 | def cleanup(self): |
| 53 | """Terminate, wait for exit, join reader threads, and log output.""" |
no outgoing calls