• Miss Islington (bot)'s avatar
    [3.7] bpo-33021: Release the GIL during fstat() calls (GH-6019) (GH-6159) · 56cce1ca
    Miss Islington (bot) yazdı
    fstat may block for long time if the file descriptor is on a
    non-responsive NFS server, hanging all threads. Most fstat() calls are
    handled by _Py_fstat(), releasing the GIL internally, but but
    _Py_fstat_noraise() does not release the GIL, and most calls release the
    GIL explicitly around it.
    
    This patch fixes last 2 calls to _Py_fstat_no_raise(), avoiding hangs
    when calling:
    - mmap.mmap()
    - os.urandom()
    - random.seed()
    (cherry picked from commit 4484f9dc)
    Co-authored-by: 's avatarNir Soffer <nirsof@gmail.com>
    56cce1ca
bootstrap_hash.c 17.9 KB