[issue32186] io.FileIO hang all threads if fstat blocks on inaccessible NFS server
STINNER Victor
report at bugs.python.org
Thu Nov 30 17:14:56 EST 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
We already release the GIL when calling lseek() in fileio.c, in the portable_lseek() function. So it makes sense to also do it in _io_FileIO_readall_impl() in the same file. os.lseek() also releases the GIL.
I found another functions which calls lseek() without releasing the GIL:
* the Windows implementation of new_mmap_object()
* _Py_DisplaySourceLine()
* fp_setreadl() of Parser/tokenizer.c
I'm not sure that these 3 functions should be modified. In case of doubt, I prefer to not touch the code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32186>
_______________________________________
More information about the Python-bugs-list
mailing list