]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126316: Make grp.getgrall() thread-safe: add a mutex (#127055) (#127104)
authorVictor Stinner <vstinner@python.org>
Tue, 26 Nov 2024 11:01:50 +0000 (12:01 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Nov 2024 11:01:50 +0000 (12:01 +0100)
commit9187ac3f2d22a7505da8cc9e159c75068b8b9a50
tree2180419a5ef9f4722fc181dcebb4fdbd079f7194
parent0f77357905a82ae03e6ba6868e4d7b2feef4f656
[3.13] gh-126316: Make grp.getgrall() thread-safe: add a mutex (#127055) (#127104)

* gh-126316: Make grp.getgrall() thread-safe: add a mutex (#127055)

grpmodule.c is no longer built with the limited C API, since PyMutex
is excluded from the limited C API.

(cherry picked from commit 3c2bd66e21bd8de69a89ebf09ff9d8e78ddfb839)

* Revert ABI changes

Don't use Argument Clinic for grp.getgrgid() to avoid changing the
ABI (change PyInterpreterState structure by adding an "id"
identifier).
Misc/NEWS.d/next/Library/2024-11-20-11-37-08.gh-issue-126316.ElkZmE.rst [new file with mode: 0644]
Modules/clinic/grpmodule.c.h
Modules/grpmodule.c
Tools/c-analyzer/cpython/ignored.tsv