]> granicus.if.org Git - python/commit
http://bugs.python.org/issue5544
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Tue, 24 Mar 2009 13:21:53 +0000 (13:21 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Tue, 24 Mar 2009 13:21:53 +0000 (13:21 +0000)
commitdc7c128d74876bf0bcef61e34bd858a675b7a43c
tree7a7e8be141f0b5557a5abc1dccd648abd1f4d4d8
parent7c43524d3cf2d141ab0bce0c1dd21bc410586cb4
http://bugs.python.org/issue5544
Someone may have closed the file descriptor, with something like
f = open('test.test', 'w')
os.close(f.fileno())
f.close()
Protect against this by checking fd on windows before closing.
Modules/_fileio.c