]> granicus.if.org Git - python/commit
bpo-32186: Release the GIL during lseek and fstat (#4652)
authorNir Soffer <nirsof@gmail.com>
Fri, 1 Dec 2017 01:18:58 +0000 (03:18 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Dec 2017 01:18:58 +0000 (02:18 +0100)
commit6a89481680b921e7b317c29877bdda9a6031e5ad
treed5292d62fba5e604eda83869670acde7c51db492
parentc319eeeb45043ee45384b8064c53ddbfde1673cd
bpo-32186: Release the GIL during lseek and fstat (#4652)

In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called
without releasing the GIL. This can cause all threads to hang for
unlimited time when calling FileIO.read() and the NFS server is not
accessible.
Misc/NEWS.d/next/Library/2017-11-30-20-38-16.bpo-32186.O42bVe.rst [new file with mode: 0644]
Modules/_io/fileio.c