[issue4708] os.pipe should return inheritable descriptors (Windows)

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: The PEP 446 has been implemented in Python 3.4 and all file descriptors and sockets are now created non-inheritable by default. Use os.set_inheritable() to make the pipe fds inheritable. -- resolution: - fixed status: open - closed

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-08-09 Thread STINNER Victor
STINNER Victor added the comment: os.pipe() creates non-inheritable pipes on Windows, whereas it creates inheritable pipes on UNIX. IMO the reason is an implementation artifact: os.pipe() calls CreatePipe() on Windows (native API), whereas it calls pipe() on UNIX (POSIX API). The call to

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-31 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: tim.golden - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___ ___ Python-bugs-list

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-24 Thread STINNER Victor
STINNER Victor added the comment: Changing the default inheritance value of os.pipe() is not acceptable because it would break backward compatibility. Giving access to Windows extra parameter is nice, but we have to find a way to propose a portable API. That's what I'm trying to do with the

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-09 Thread Richard Oudkerk
Richard Oudkerk added the comment: - would improve POSIX compatibility, it mimics what os.pipe() does on those OS I disagree. On Windows fds can only be inherited if you start processes using the spanwn*() family of functions. If you start them using CreateProcess() then the underlying

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-09 Thread Richard Oudkerk
Richard Oudkerk added the comment: Oops. I confused os.popen() with os.spawn*(). os.spawnv() IS still implemented using spawnv() in Python 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-08 Thread Christian Heimes
Christian Heimes added the comment: Victor, this fits nicely with your recent PEP. -- nosy: +christian.heimes, haypo versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___ ___ Python-bugs-list mailing list

[issue4708] os.pipe should return inheritable descriptors (Windows)

2010-08-11 Thread Daniel Goertzen
Changes by Daniel Goertzen daniel.goert...@gmail.com: -- nosy: +Daniel.Goertzen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___ ___

[issue4708] os.pipe should return inheritable descriptors (Windows)

2010-08-06 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___

[issue4708] os.pipe should return inheritable descriptors (Windows)

2009-01-19 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4708 ___ ___ Python-bugs-list mailing

[issue4708] os.pipe should return inheritable descriptors (Windows)

2009-01-14 Thread Aaron Brady
Aaron Brady castiro...@gmail.com added the comment: This is currently accomplished in 'multiprocessing.forking' with a 'duplicate' function. Use (line #213): rfd, wfd = os.pipe() # get handle for read end of the pipe and make it inheritable rhandle =

[issue4708] os.pipe should return inheritable descriptors (Windows)

2008-12-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Patch to posixmodule.c including test case and documentation updates. Note: I've only run the tests on Windows. -- keywords: +patch Added file: http://bugs.python.org/file12460/inheritable_pipes.diff

[issue4708] os.pipe should return inheritable descriptors (Windows)

2008-12-21 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: From the thread in c.l.p: Pros (of changing os.pipe() to return inheritable pipes): - as it isn't explicitely documented whether os.pipe() returns inheritable pipes or not, both versions are right according to the documentation.

[issue4708] os.pipe should return inheritable descriptors (Windows)

2008-12-20 Thread Aaron Brady
New submission from Aaron Brady castiro...@gmail.com: os.pipe should return inheritable descriptors on Windows. Patch below, test attached. New pipe() returns descriptors, which cannot be inherited. However, their permissions are set correctly, so msvcrt.get_osfhandle and