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.
This commit is contained in:
Victor Stinner 2024-11-21 15:47:24 +01:00 committed by GitHub
parent 60ec854bc2
commit 3c2bd66e21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 107 additions and 22 deletions

View file

@ -471,6 +471,7 @@ struct _Py_global_strings {
STRUCT_FOR_ID(hi)
STRUCT_FOR_ID(hook)
STRUCT_FOR_ID(hour)
STRUCT_FOR_ID(id)
STRUCT_FOR_ID(ident)
STRUCT_FOR_ID(identity_hint)
STRUCT_FOR_ID(ignore)