(self)
| 173 | raise Exception("Cannot send input to proccess without pty.") |
| 174 | |
| 175 | def terminate(self): |
| 176 | if IS_WINDOWS: |
| 177 | # Signals are hard on Windows |
| 178 | sig = signal.SIGTERM |
| 179 | else: |
| 180 | sig = signal.SIGINT |
| 181 | |
| 182 | self.proc.send_signal(sig) |
| 183 | self._terminated = True |
no outgoing calls