Staging
v0.5.1
https://github.com/python/cpython
Revision 29094cec7cddd561cac16ce93443ca72d740de4d authored by Nir Soffer on 26 July 2017, 23:24:52 UTC, committed by Victor Stinner on 26 July 2017, 23:24:52 UTC
* bpo-30980: Fix close test to fail

test_close_twice was not considering the fact that file_wrapper is
duping the file descriptor. Closing the original descriptor left the
duped one open, hiding the fact that close protection is not effective.

* bpo-30980: Fix double close protection

Invalidated self.fd before closing, handling correctly the case when
os.close raises.

* bpo-30980: Fix fd leak introduced in the fixed test
1 parent 0cba38d
History
Tip revision: 29094cec7cddd561cac16ce93443ca72d740de4d authored by Nir Soffer on 26 July 2017, 23:24:52 UTC
bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2900)
Tip revision: 29094ce
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 6.1 KB
README.txt -rw-r--r-- 3.9 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.0 KB
conf.py -rw-r--r-- 5.7 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 35.8 KB
license.rst -rw-r--r-- 44.1 KB
make.bat -rw-r--r-- 3.6 KB

README.txt

back to top