diff options
author | Nir Soffer <nirsof@gmail.com> | 2017-12-01 01:18:58 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-12-01 01:18:58 (GMT) |
commit | 6a89481680b921e7b317c29877bdda9a6031e5ad (patch) | |
tree | d5292d62fba5e604eda83869670acde7c51db492 /Misc | |
parent | c319eeeb45043ee45384b8064c53ddbfde1673cd (diff) | |
download | cpython-6a89481680b921e7b317c29877bdda9a6031e5ad.zip cpython-6a89481680b921e7b317c29877bdda9a6031e5ad.tar.gz cpython-6a89481680b921e7b317c29877bdda9a6031e5ad.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-11-30-20-38-16.bpo-32186.O42bVe.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-11-30-20-38-16.bpo-32186.O42bVe.rst b/Misc/NEWS.d/next/Library/2017-11-30-20-38-16.bpo-32186.O42bVe.rst new file mode 100644 index 0000000..ea696c6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-11-30-20-38-16.bpo-32186.O42bVe.rst @@ -0,0 +1,3 @@ +io.FileIO.readall() and io.FileIO.read() now release the GIL when +getting the file size. Fixed hang of all threads with inaccessible NFS +server. Patch by Nir Soffer. |