STINNER Victor <[email protected]> added the comment:
Oh, by the way: it would also be nice to add os.O_CLOEXEC to Python 2.7.
For example, tempfile._mkstemp_inner() uses:
fd = _os.open(file, flags, 0600)
_set_cloexec(fd) #Â fcntl(fd, F_SETFD, flags | FD_CLOEXEC)
which is not atomic.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12105>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com