Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r86231:2b797c855cb4
Date: 2016-08-16 17:08 +0200
http://bitbucket.org/pypy/pypy/changeset/2b797c855cb4/

Log:    Quick fix, hopefully fixing issues of subprocess.Popen() in a
        translated pypy

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
@@ -894,6 +894,9 @@
         fd1, fd2 = os.pipe()
     except OSError as e:
         raise wrap_oserror(space, e)
+    # XXX later, use rposix.pipe2() if available!
+    rposix.set_inheritable(fd1, False)
+    rposix.set_inheritable(fd2, False)
     return space.newtuple([space.wrap(fd1), space.wrap(fd2)])
 
 @unwrap_spec(mode=c_int, dir_fd=DirFD(rposix.HAVE_FCHMODAT),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to