This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, christian.heimes, docs@python, neologix, rfm, vstinner
Date 2013-10-31.22:24:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383258251.78.0.428597210193.issue19444@psf.upfronthosting.co.za>
In-reply-to
Content
> Robert, want to submit a patch?

If someone wants to work on a patch, here is the code of Python 3.4 to duplicate a file descriptor and make it non-inheritable.
  http://hg.python.org/cpython/file/e97d9926da83/Python/fileutils.c#l978
and
  http://hg.python.org/cpython/file/e97d9926da83/Python/fileutils.c#l618

The code is complex because it has optimized versions for each operating system. Only supporting Windows and fcntl() is enough for Python 2.
History
Date User Action Args
2013-10-31 22:24:11vstinnersetrecipients: + vstinner, christian.heimes, Arfrever, neologix, docs@python, rfm
2013-10-31 22:24:11vstinnersetmessageid: <1383258251.78.0.428597210193.issue19444@psf.upfronthosting.co.za>
2013-10-31 22:24:11vstinnerlinkissue19444 messages
2013-10-31 22:24:11vstinnercreate