mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
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:
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…
Reference in New Issue
Block a user