[New-bugs-announce] [issue26343] os.O_CLOEXEC not available on OS X
Gustavo Goretkin
report at bugs.python.org
Thu Feb 11 17:11:23 EST 2016
New submission from Gustavo Goretkin:
I am on OS X 10.9.5
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.O_CLOEXEC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'os' has no attribute 'O_CLOEXEC'
I checked on my system
$ man 2 open | grep CLOEXEC
O_CLOEXEC mark as close-on-exec
The O_CLOEXEC flag causes the file descriptor to be marked as close-on-
exec, setting the FD_CLOEXEC flag. The state of the file descriptor
I first noticed this on an anaconda distribution of python, but it looks like it is also present on the 3.5 .dmg file on https://www.python.org/downloads/
----------
components: Macintosh
messages: 260135
nosy: Gustavo Goretkin, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: os.O_CLOEXEC not available on OS X
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26343>
_______________________________________
More information about the New-bugs-announce
mailing list