[pypy-svn] pypy fast-forward: Check for signals in BufferedIO

amauryfa commits-noreply at bitbucket.org
Tue Jan 11 22:41:29 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40602:a5fda6e2abdd
Date: 2011-01-11 22:41 +0100
http://bitbucket.org/pypy/pypy/changeset/a5fda6e2abdd/

Log:	Check for signals in BufferedIO

diff --git a/pypy/module/_io/interp_bufferedio.py b/pypy/module/_io/interp_bufferedio.py
--- a/pypy/module/_io/interp_bufferedio.py
+++ b/pypy/module/_io/interp_bufferedio.py
@@ -318,7 +318,7 @@
             # Partial writes can return successfully when interrupted by a
             # signal (see write(2)).  We must run signal handlers before
             # blocking another time, possibly indefinitely.
-            # XXX PyErr_CheckSignals()
+            space.getexecutioncontext().checksignals()
 
         if restore_pos:
             forward = rewind - written


More information about the Pypy-commit mailing list