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
VC6
VS7.1
VS8.0
VS9.0
bdist_wininst
os2emx
os2vacpp
WinMain.c -rw-r--r-- 447 bytes
_msi.c -rw-r--r-- 31.6 KB
_subprocess.c -rw-r--r-- 19.7 KB
_winreg.c -rw-r--r-- 60.6 KB
config.c -rw-r--r-- 4.5 KB
dl_nt.c -rw-r--r-- 4.2 KB
dllbase_nt.txt -rw-r--r-- 3.5 KB
empty.c -rw-r--r-- 137 bytes
errmap.h -rw-r--r-- 2.1 KB
errmap.mak -rw-r--r-- 95 bytes
frozen_dllmain.c -rw-r--r-- 3.9 KB
generrmap.c -rw-r--r-- 503 bytes
getpathp.c -rw-r--r-- 21.0 KB
icons.mak -rw-r--r-- 213 bytes
icons.rc -rw-r--r-- 59 bytes
import_nt.c -rw-r--r-- 2.7 KB
make_versioninfo.c -rw-r--r-- 1.2 KB
msvcrtmodule.c -rw-r--r-- 11.0 KB
py.ico -rw-r--r-- 19.3 KB
pyc.ico -rw-r--r-- 19.3 KB
pycon.ico -rw-r--r-- 19.3 KB
pyconfig.h -rw-r--r-- 20.8 KB
python.mk -rw-r--r-- 229 bytes
python_exe.rc -rw-r--r-- 49 bytes
python_nt.rc -rw-r--r-- 1.8 KB
readme.txt -rw-r--r-- 4.1 KB
testpy.py -rw-r--r-- 834 bytes
w9xpopen.c -rw-r--r-- 3.6 KB
winsound.c -rw-r--r-- 5.3 KB

readme.txt

back to top