Robert Merrill added the comment:

I should add a caveat: the fd that is created by mmap /will/ be set to 
close-on-exec if the fd you passed in was. But even if it's not, I see no 
reason why mmap should not be setting it anyway.

At the very least, the documentation should bring the user's attention to this 
potential stumbling block. Currently it makes no mention of the fact that mmap 
duplicates file descriptors at all, much less how the flags are set.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to