[issue6271] mmap: don't close file description if fd=-1

2009-06-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6271] mmap: don't close file description if fd=-1

2009-06-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, fixed in r73425(trunk), r73426(release26-maint), r73427(py3k), r73428(release30-maint). -- nosy: +ocean-city ___ Python tracker ___ _

[issue6271] mmap: don't close file description if fd=-1

2009-06-12 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file14271/mmap_close.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6271] mmap: don't close file description if fd=-1

2009-06-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file14269/mmap_close.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6271] mmap: don't close file description if fd=-1

2009-06-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file14270/warn.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6271] mmap: don't close file description if fd=-1

2009-06-12 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file14270/warn.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6271] mmap: don't close file description if fd=-1

2009-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file14269/mmap_close.patch ___ Python tracker ___ __

[issue6271] mmap: don't close file description if fd=-1

2009-06-12 Thread STINNER Victor
New submission from STINNER Victor : Hi, Valgrind just told me that Python calls close(-1) on my_mmap_object.close() for memory mappings. That's because a memory mapping has no (related) file descriptor. Using attached warn.py, you can see the warning using strace: $ strace -e close python warn