[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

STINNER Victor report at bugs.python.org
Mon Sep 20 03:57:57 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

Dan Snider: "On Android, if os.close_range closes the file descriptor of the scandir iterator, the interpreter immediately crashes"

I don't see anything wrong with Python. It's not different than calling os.close(3).

If it hurts, don't do that :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21627>
_______________________________________


More information about the Python-bugs-list mailing list