Fix #28: hide interpreter-death threading exceptions
(cherry picked from commit 3709d2e02bf67ccc272e1f2311e5db125a922ba0)
This commit is contained in:
parent
43f8236063
commit
3c01fdda14
|
@ -1530,6 +1530,10 @@ class Transport (threading.Thread):
|
|||
# indefinitely, creating a GC cycle and not letting Transport ever be
|
||||
# GC'd. it's a bug in Thread.)
|
||||
|
||||
# Hold reference to 'sys' so we can test sys.modules to detect
|
||||
# interpreter shutdown.
|
||||
self.sys = sys
|
||||
|
||||
# Required to prevent RNG errors when running inside many subprocess
|
||||
# containers.
|
||||
Random.atfork()
|
||||
|
|
Loading…
Reference in New Issue