SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72150 0 55 Python

Avoid fcntl() if possible in set_inheritable()

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).
V
Victor Stinner committed
a858bbde03638e3145894029dbc40d3d777be24f
Parent: b6a9c97