commit | a858bbde03638e3145894029dbc40d3d777be24f | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Sun Apr 17 16:51:52 2016 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Sun Apr 17 16:51:52 2016 +0200 |
tree | 31a6a4da0c0e64ee88a8ce0f26a1ee8ae2fb06cd | |
parent | b6a9c9761ca988e1ab69defd45433fac0b2ff89c [diff] |
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).