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 martin.panter, serhiy.storchaka, steve.dower, vstinner
Date 2016-04-17.14:50:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Another question: should we handle EINTR in ioctl() and fcntl()? But this is a different issue.

See attached test I tried it with ioctl() and fcntl() implementations of os.set_inheritable() and I got more than 10,000 signals: no syscalls failed with EINTR.

IMHO EINTR is only used when the syscall waits, for example wait for I/O. I don't think that setting FD_CLOEXEC requires any I/O.


$ ./python 
got 16871 signals
Date User Action Args
2016-04-17 14:50:19vstinnersetrecipients: + vstinner, martin.panter, serhiy.storchaka, steve.dower
2016-04-17 14:50:19vstinnersetmessageid: <>
2016-04-17 14:50:19vstinnerlinkissue26770 messages
2016-04-17 14:50:19vstinnercreate