Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r61307:0fb9480d9d6d
Date: 2013-02-16 03:16 -0500
http://bitbucket.org/pypy/pypy/changeset/0fb9480d9d6d/

Log:    clean up the thread's signals enabled count on thread exit

diff --git a/pypy/module/thread/threadlocals.py 
b/pypy/module/thread/threadlocals.py
--- a/pypy/module/thread/threadlocals.py
+++ b/pypy/module/thread/threadlocals.py
@@ -43,6 +43,10 @@
                 del self._valuedict[ident]
             except KeyError:
                 pass
+            try:
+                del self._signalsenabled[ident]
+            except KeyError:
+                pass
         # update the minicache to prevent it from containing an outdated value
         self._mostrecentkey = ident
         self._mostrecentvalue = value
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to