• Victor Stinner's avatar
    Avoid fcntl() if possible in set_inheritable() · a858bbde
    Victor Stinner authored
    Issue #26770: set_inheritable() avoids calling fcntl() twice if the FD_CLOEXEC
    is already set/cleared. This change only impacts platforms using the fcntl()
    implementation of set_inheritable() (not Linux nor Windows).
    a858bbde
fileutils.c 45.4 KB