Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r57254:5f6bd03d6b4c
Date: 2012-09-09 19:31 +0000
http://bitbucket.org/pypy/pypy/changeset/5f6bd03d6b4c/

Log:    issue1255 resolved

        Release the GIL around calls to signal.pause().

diff --git a/pypy/module/signal/interp_signal.py 
b/pypy/module/signal/interp_signal.py
--- a/pypy/module/signal/interp_signal.py
+++ b/pypy/module/signal/interp_signal.py
@@ -95,7 +95,7 @@
                                     lltype.Ptr(LONG_STRUCT), _nowrapper=True,
                                     elidable_function=True)
 c_alarm = external('alarm', [rffi.INT], rffi.INT)
-c_pause = external('pause', [], rffi.INT)
+c_pause = external('pause', [], rffi.INT, threadsafe=True)
 c_siginterrupt = external('siginterrupt', [rffi.INT, rffi.INT], rffi.INT)
 
 if sys.platform != 'win32':
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to