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 sstewartgallus
Recipients gregory.p.smith, neologix, pitrou, sstewartgallus, vstinner
Date 2014-06-02.23:42:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401752527.17.0.281293178984.issue21627@psf.upfronthosting.co.za>
In-reply-to
Content
It occurred to me that the current patch I have is wrong and that using _Py_set_inheritable is wrong because EBADF can occur in the brute force version which in the case of _Py_set_inheritable raises an error which I am not sure is asynch signal safe. I could test ahead of time but that is a bit hacky. The most principled approach would be to extract either a common set_cloexec or set_inheritable function. If set_inheritable is done then I would have to report either a Windows error or an errno error which would be messy. I'm not sure where the best place to put the set_cloexec function would be.
History
Date User Action Args
2014-06-02 23:42:07sstewartgallussetrecipients: + sstewartgallus, gregory.p.smith, pitrou, vstinner, neologix
2014-06-02 23:42:07sstewartgallussetmessageid: <1401752527.17.0.281293178984.issue21627@psf.upfronthosting.co.za>
2014-06-02 23:42:07sstewartgalluslinkissue21627 messages
2014-06-02 23:42:07sstewartgalluscreate