Fix #28: hide interpreter-death threading exceptions

(cherry picked from commit 3709d2e02bf67ccc272e1f2311e5db125a922ba0)
This commit is contained in:
Jeff Forcier 2012-09-13 18:35:12 -05:00
parent 43f8236063
commit 3c01fdda14
1 changed files with 4 additions and 0 deletions

View File

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