• Jason Madden's avatar
    Deterministically close GreenFileDescriptorIO backing FileObjectPosix if the... · ae3ae063
    Jason Madden authored
    Deterministically close GreenFileDescriptorIO backing FileObjectPosix if the (libuv) event loop watchers produce an error.
    
    Especially on Python 3.7, the C-level garbage collection could kick in and close the underlying fileno at an inopportune time, killing an unrelated file, even though there were no Python-level references alive (apparently).
    ae3ae063
_fileobjectposix.py 13.5 KB