bpo-42780: fix set_inheritable() for O_PATH file descriptors on Linux#24172
bpo-42780: fix set_inheritable() for O_PATH file descriptors on Linux#24172vstinner merged 3 commits intopython:masterfrom
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_PATHfile descriptors on Linux, which breaksos.set_inheritable()since it usesioctl(FIOCLEX)/ioctl(FIONCLEX)on Linux. This patch fixes that.https://bugs.python.org/issue42780