Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r91074:a402a0d7ee30
Date: 2017-04-17 21:35 +0200
http://bitbucket.org/pypy/pypy/changeset/a402a0d7ee30/

Log:    Apply CPython rev 9180fb4eccc7: Raise our own SubprocessError rather
        than a RuntimeError when dealing with odd rare errors coming from
        the subprocess module.

diff --git a/pypy/module/_posixsubprocess/_posixsubprocess.c 
b/pypy/module/_posixsubprocess/_posixsubprocess.c
--- a/pypy/module/_posixsubprocess/_posixsubprocess.c
+++ b/pypy/module/_posixsubprocess/_posixsubprocess.c
@@ -491,7 +491,7 @@
         /* We can't call strerror(saved_errno).  It is not async signal safe.
          * The parent process will look the error message up. */
     } else {
-        unused = write(errpipe_write, "RuntimeError:0:", 15);
+        unused = write(errpipe_write, "SubprocessError:0:", 18);
         unused = write(errpipe_write, err_msg, strlen(err_msg));
     }
     if (unused) return;  /* silly? yes! avoids gcc compiler warning. */
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to