[pypy-commit] pypy default: Oups, fix for e2d958c646fd.

arigo noreply at buildbot.pypy.org
Mon Jun 11 14:58:08 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r55576:4a6f16e2a438
Date: 2012-06-11 14:50 +0200
http://bitbucket.org/pypy/pypy/changeset/4a6f16e2a438/

Log:	Oups, fix for e2d958c646fd.

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
@@ -148,9 +148,9 @@
             n = pypysig_poll()
             if n < 0:
                 break
-            self.perform_signal(n)
+            self.perform_signal(executioncontext, n)
 
-    def perform_signal(self, n):
+    def perform_signal(self, executioncontext, n):
         if self.reissue_signal_action is None:
             # no threads: we can report the signal immediately
             self.report_signal(n)
@@ -167,7 +167,8 @@
 
     def set_interrupt(self):
         "Simulates the effect of a SIGINT signal arriving"
-        self.perform_signal(cpy_signal.SIGINT)
+        ec = self.space.getexecutioncontext()
+        self.perform_signal(ec, cpy_signal.SIGINT)
 
     def report_signal(self, n):
         try:


More information about the pypy-commit mailing list