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 igor.pashev
Recipients igor.pashev
Date 2014-08-23.13:20:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408800024.14.0.0329688839383.issue22258@psf.upfronthosting.co.za>
In-reply-to
Content
I've found on illumos-based OS that under some conditions python is unable to open any files because set_inheritable() fails. This happens even when building python when it cannot find (open) _sysconfigdata.py.

The problem is that set_inheritable() first checks for FIOCLEX/FIONCLEX ioctls and tries to use them if such macros are defined. These macros can be defined at illumos, but kernel does not support them (inappropriate ioctl). Since other pieces of python already use FD_CLOEXEC unconditionally, including get_inheritable() I patched set_inheritable() to use FD_CLOEXEC. See attached patch.
History
Date User Action Args
2014-08-23 13:20:24igor.pashevsetrecipients: + igor.pashev
2014-08-23 13:20:24igor.pashevsetmessageid: <1408800024.14.0.0329688839383.issue22258@psf.upfronthosting.co.za>
2014-08-23 13:20:24igor.pashevlinkissue22258 messages
2014-08-23 13:20:23igor.pashevcreate