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 Pavel.Labath, alex, emaste, koobs, ned.deily, pitrou, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2015-03-17.09:21:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426584072.25.0.473637681159.issue23458@psf.upfronthosting.co.za>
In-reply-to
Content
Ned Deily added the comment:
> FD_CLOEXEC is first support on OS X 10.5.  Here's a patch to skip the test on earlier systems: tested on 10.4, 10.5, and 10.10.

What do you mean by "first support"? Does it mean that fcntl(fd, F_SETFD, FD_CLOEXEC) is simply a no-op?

Does Python 3.4 with the PEP 446 works on OS X 10.4? Can you test the following example?

Python 3.4.1 (default, Nov  3 2014, 14:38:10)
[GCC 4.9.1 20140930 (Red Hat 4.9.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> fd=os.open('.', os.O_RDONLY)
>>> os.get_inheritable(fd)
False
>>> os.set_inheritable(fd, True)
>>> os.get_inheritable(fd)
True
History
Date User Action Args
2015-03-17 09:21:12vstinnersetrecipients: + vstinner, rhettinger, pitrou, ned.deily, alex, python-dev, serhiy.storchaka, koobs, emaste, Pavel.Labath
2015-03-17 09:21:12vstinnersetmessageid: <1426584072.25.0.473637681159.issue23458@psf.upfronthosting.co.za>
2015-03-17 09:21:12vstinnerlinkissue23458 messages
2015-03-17 09:21:11vstinnercreate