On Dec 20, 7:06 pm, Aaron Brady <castiro...@gmail.com> wrote: > On Dec 18, 7:21 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar> > wrote: > > > > > En Thu, 18 Dec 2008 19:46:45 -0200, Aaron Brady <castiro...@gmail.com> > > escribió: > snip > > > Will it take calling > > > 'CreatePipe' from ctypes directly if on Windows? Or can 'os.pipe' be > > > made to abstract that? If Windows can't inherit descriptors, > > > 'os.pipe' should return handles, and 'os.read' &co. should accept > > > them. > > > I think the best way would be to modify os.pipe so it returns inheritable > > pipes, as it should have been from the beginning. > > > > It is a fairly large patch. > > > Not at all, you have already posted most of it. > > I have marginally tested the patch on a custom build. It works, but > there is a catch. The descriptor can't be passed directly to the > child on the command line. You need to call 'msvcrt.get_osfhandle' on > the descriptor, pass the result, then call 'msvcrt.open_osfhandle' in > the child.
Issue is at: http://bugs.python.org/issue4708 -- http://mail.python.org/mailman/listinfo/python-list