Author igor.pashev
Recipients igor.pashev
Date 2014-08-23.13:20:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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)

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.
Date User Action Args
2014-08-23 13:20:24igor.pashevsetrecipients: + igor.pashev
2014-08-23 13:20:24igor.pashevsetmessageid: <>
2014-08-23 13:20:24igor.pashevlinkissue22258 messages
2014-08-23 13:20:23igor.pashevcreate