( self, timeout )
| 138 | |
| 139 | # Wait for thread to shutdown. Nuke process if we don't exit in time |
| 140 | def join( self, timeout ): |
| 141 | threading.Thread.join( self, timeout ) |
| 142 | if self.is_alive(): |
| 143 | self.WriteLn( "Still running after %d seconds. Killing" % timeout ) |
| 144 | global g_failed |
| 145 | g_failed = True |
| 146 | if self.process is not None: |
| 147 | self.process.kill() |
| 148 | |
| 149 | # Attempt graceful shutdown |
| 150 | def term( self ): |
no test coverage detected