(self, timeout=10)
| 242 | env=self.env) |
| 243 | |
| 244 | def stop(self, timeout=10): |
| 245 | self.proc.terminate() |
| 246 | |
| 247 | # Now give it some time to react to the signal |
| 248 | rc = self.proc.wait(timeout) |
| 249 | |
| 250 | if rc is None: |
| 251 | self.proc.kill() |
| 252 | |
| 253 | self.proc.wait() |
| 254 | return self.proc.returncode |
| 255 | |
| 256 | def kill(self): |
| 257 | """Kill process without giving it warning.""" |