Author: Armin Rigo <[email protected]>
Branch: ec-threadlocal
Changeset: r72165:d6e8e7819baf
Date: 2014-06-23 19:18 +0200
http://bitbucket.org/pypy/pypy/changeset/d6e8e7819baf/

Log:    Fix reinit_threads()

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
@@ -84,8 +84,10 @@
         ident = rthread.get_ident()
         ec = self.get_ec()
         assert ec is not None
+        old_sig = ec._signals_enabled
         if ident != self._mainthreadident:
-            ec._signals_enabled += 1
+            old_sig += 1
         self._cleanup_()
         self._mainthreadident = ident
         self._set_ec(ec)
+        ec._signals_enabled = old_sig
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to