8000 gh-116738: Make grp module thread-safe by yoney · Pull Request #135434 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-116738: Make grp module thread-safe #135434

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

Merged
merged 10 commits into from
Jul 14, 2025
Prev Previous commit
Next Next commit
gh-116738: Fix pre-processor block
  • Loading branch information
yoney committed Jun 26, 2025
commit c6861c6618e32b2507da19fbb01fe53cf04fe030
2 changes: 1 addition & 1 deletion Modules/grpmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ grp_getgrnam_impl(PyObject *module, PyObject *name)
p = getgrnam(name_chars);
#endif
if (p == NULL) {
#ifndef HAVE_GETGRGID_R
#ifndef HAVE_GETGRNAM_R
PyMutex_Unlock(&getgrnam_mutex);
#endif
if (nomem == 1) {
Expand Down
0