]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44219: Release the GIL during isatty syscalls (GH-28250) (GH-28255)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Sep 2021 16:35:43 +0000 (09:35 -0700)
committerGitHub <noreply@github.com>
Thu, 9 Sep 2021 16:35:43 +0000 (18:35 +0200)
commit23c46778d65870784cb6d4de30f43aac62d71e73
tree3c359476d5179bbbf8843d43b1b9d8c08ad5238e
parent11103eb1f2199cacd8c2e29e3db0d19199885b45
bpo-44219: Release the GIL during isatty syscalls (GH-28250) (GH-28255)

Release the GIL while performing isatty() system calls on arbitrary
file descriptors. In particular, this affects os.isatty(),
os.device_encoding() and io.TextIOWrapper. By extension,
io.open() in text mode is also affected.
(cherry picked from commit 06148b1870fceb1a21738761b8e1ac3bf654319b)

Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2021-09-09-10-32-33.bpo-44219.WiYyjz.rst [new file with mode: 0644]
Modules/posixmodule.c
Python/fileutils.c