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, pitrou, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2015-02-24.13:54:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424786063.14.0.120907865709.issue23458@psf.upfronthosting.co.za>
In-reply-to
Content
> Still, I would like to argue that an atomic operation is important.

Yes, and that's why I wrote the whole PEP 446 :-) But we are *not* going to backport the PEP. New features and bug fixes requiring large code change are only done in the development branch, not on stable branches.

Fixing os.urandom() to have atomic operation creating the file descriptor non-inheritable is useless, because they are a *lot* of other functions which create inheritable file descriptors, and a few others which create non-inheritable file descriptor but are not atomic.

You don't have to search too far: Popen.pipe_cloexec() is not atomic...

Reminder: subprocess is not thread-safe => issue #19809 (doc issue).

See my "Bugs already fixed in Python 3" and "Bugs that won’t be fixed in Python 2 anymore" lists:
http://haypo-notes.readthedocs.org/python.html#python-3-is-better-than-python-2

--

I reopen the issue because the test is failing on Windows and OpenIndiana buildbots.
History
Date User Action Args
2015-02-24 13:54:23vstinnersetrecipients: + vstinner, rhettinger, pitrou, alex, python-dev, serhiy.storchaka, koobs, emaste, Pavel.Labath
2015-02-24 13:54:23vstinnersetmessageid: <1424786063.14.0.120907865709.issue23458@psf.upfronthosting.co.za>
2015-02-24 13:54:23vstinnerlinkissue23458 messages
2015-02-24 13:54:22vstinnercreate