]> granicus.if.org Git - python/commit
bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Dec 2017 06:26:31 +0000 (22:26 -0800)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Dec 2017 06:26:31 +0000 (07:26 +0100)
commit8bcd41040a5f1f9b48a86d0e21f196e4b1f90e4b
tree11a56145f0c96232e9067ab3bdcba5bb6d469da0
parente10c9de9d74fd4c26b32e6719d96f04a5be6987d
bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661)

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.
(cherry picked from commit 6a89481680b921e7b317c29877bdda9a6031e5ad)
Misc/NEWS.d/next/Library/2017-11-30-20-38-16.bpo-32186.O42bVe.rst [new file with mode: 0644]
Modules/_io/fileio.c