[pypy-commit] pypy default: issue1255 resolved

arigo noreply at buildbot.pypy.org
Sun Sep 9 21:30:54 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
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':


More information about the pypy-commit mailing list