]> granicus.if.org Git - python/commit
[2.7] bpo-32186: Release the GIL during fstat and lseek calls (#4651)
authorNir Soffer <nirsof@gmail.com>
Thu, 7 Dec 2017 20:25:39 +0000 (22:25 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 7 Dec 2017 20:25:39 +0000 (21:25 +0100)
commit830daae1c82ed33deef0086b7b6323e5be0b0cc8
tree0c11e6b6281ec736bbae427c7100e7d8af65b63f
parent12fa6b1e2ff8112b0a9f61949c3d5252a75bf909
[2.7] bpo-32186: Release the GIL during fstat and lseek calls (#4651)

In fileio, there were 3 fstat() calls and one lseek() call that did not
release the GIL during the call. This can cause all threads to hang for
unlimited time when using io.FileIO with inaccessible NFS server.

Same issue seen in fileio exists also in fileobject, fixed in the same
way.
Misc/NEWS.d/next/Library/2017-11-30-20-33-22.bpo-32186.O42bVe.rst [new file with mode: 0644]
Modules/_io/fileio.c
Objects/fileobject.c