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 Robert Boehne, christian.heimes, jmadden, vstinner
Date 2019-05-09.23:21:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557444084.91.0.776066823617.issue36843@roundup.psfhosted.org>
In-reply-to
Content
Robert Boehne: pyurandom() uses _Py_open_noraise("/dev/urandom", O_RDONLY) which uses O_CLOEXEC if available. If this flag available? Does it work?

Please try to build attached urandom.c.

Example on my Fedora 29:

open O_RDONLY succeeded
read(16) -> 16
open O_RDONLY | O_CLOEXEC succeeded
read(16) -> 16
History
Date User Action Args
2019-05-09 23:21:24vstinnersetrecipients: + vstinner, christian.heimes, jmadden, Robert Boehne
2019-05-09 23:21:24vstinnersetmessageid: <1557444084.91.0.776066823617.issue36843@roundup.psfhosted.org>
2019-05-09 23:21:24vstinnerlinkissue36843 messages
2019-05-09 23:21:24vstinnercreate