Author: Joannah Nanjekye <nanjekyejoan...@gmail.com>
Branch: pread/pwrite
Changeset: r90388:891d7b451da6
Date: 2017-02-25 13:30 +0300
http://bitbucket.org/pypy/pypy/changeset/891d7b451da6/

Log:    retry for pwrite also

diff --git a/pypy/module/posix/interp_posix.py 
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -312,7 +312,7 @@
     try:
         res = rposix.pwrite(fd, data.as_str(), offset)
     except OSError as e:
-        raise wrap_oserror(space, e)
+        raise wrap_oserror(space, e, eintr_retry=True)
     else:
         return space.wrap(res)
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to