Merge pull request #4498 from takluyver/daemon-streamcapturer

Daemon StreamCapturer

The StreamCapturer should die if the main thread crashes. On Shiningpanda, a failure in another nose plugin has been causing the tests to hang, because the main thread exits, but the StreamCapturer thread is still alive.

Under normal conditions, the thread will still be shut down cleanly - it will only die a messy death if the main thread does.
This commit is contained in:
Min RK 2013-11-06 12:45:09 -08:00
commit cf5cc8bb5e

View File

@ -359,6 +359,7 @@ class ExclusionPlugin(Plugin):
class StreamCapturer(Thread):
daemon = True # Don't hang if main thread crashes
started = False
def __init__(self):
super(StreamCapturer, self).__init__()