[issue12105] open() does not able to set flags, such as O_CLOEXEC

Марк Коренберг report at bugs.python.org
Tue Nov 1 12:55:58 CET 2011


Марк Коренберг <socketpair at gmail.com> added the comment:

Well, I understand. So why not to add 'e' (and 'N', which is the same meaning) character, which:

* use O_CLOEXEC in modern Linux
* generate Exception if O_CLOEXEC is not supported (or does not work) on platform. 

Also, implement O_CLOEXEC for open() in Windows using appropriate securityattributes with CreateFile()

?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12105>
_______________________________________


More information about the Python-bugs-list mailing list