-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-42780: fix set_inheritable() for O_PATH file descriptors on Linux #24172
Conversation
…pythonGH-24172) (cherry picked from commit 7dc71c4) Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com>
GH-24269 is a backport of this pull request to the 3.9 branch. |
…pythonGH-24172) (cherry picked from commit 7dc71c4) Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com>
GH-24270 is a backport of this pull request to the 3.8 branch. |
@cptpcrd: Oh, the automated backport failed: test.support.os_helper doesn't exist in Python 3.8 and 3.9. Can you please try to backport the change? Use |
…pythonGH-24172) (cherry picked from commit 7dc71c4)
…pythonGH-24172) (cherry picked from commit 7dc71c4)
It seems that function was available under |
Yes, please create one PR per branch. |
ioctl()
doesn't work onO_PATH
file descriptors on Linux, which breaksos.set_inheritable()
since it usesioctl(FIOCLEX)
/ioctl(FIONCLEX)
on Linux. This patch fixes that.https://bugs.python.org/issue42780