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.
Min RK 12 years ago
commit cf5cc8bb5e

@ -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__()

Loading…
Cancel
Save