diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2012-09-13 18:35:12 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2012-09-24 18:59:54 -0700 |
commit | 3c01fdda1457b8c3ebc5bd7b0552584b9c786f32 (patch) | |
tree | 76c614ba72517cb092fc9b85e8cb46c334f29784 | |
parent | 43f82360634b42b4a592e038769fdac49b33aa5f (diff) |
Fix #28: hide interpreter-death threading exceptions
(cherry picked from commit 3709d2e02bf67ccc272e1f2311e5db125a922ba0)
-rw-r--r-- | paramiko/transport.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index dd389a88..04680a9f 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -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() |