summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-21 16:37:15 (GMT)
committerGitHub <noreply@github.com>2022-08-21 16:37:15 (GMT)
commit27f390bc308870732785905b15d72d4811233110 (patch)
tree7c2a914ca9ce77717cc3852d848e3beef7abcda2 /Python
parent58e1fe24c71a865a60bc9975c664dabba77f8588 (diff)
downloadcpython-27f390bc308870732785905b15d72d4811233110.zip
cpython-27f390bc308870732785905b15d72d4811233110.tar.gz
cpython-27f390bc308870732785905b15d72d4811233110.tar.bz2
gh-96125: Fix sys.thread_info.name on pthread platforms (GH-96126) (#96128)
Automerge-Triggered-By: GH:tiran (cherry picked from commit 822955c16654c22c10a993f5a94bbb68b857a150) Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Python')
-rw-r--r--Python/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 08bcdda..940d8b8 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -97,7 +97,7 @@ _PyThread_debug_deprecation(void)
# define PYTHREAD_NAME "pthread-stubs"
# include "thread_pthread_stubs.h"
#elif defined(_POSIX_THREADS)
-# if defined(__EMSCRIPTEN__) || !defined(__EMSCRIPTEN_PTHREADS__)
+# if defined(__EMSCRIPTEN__) && !defined(__EMSCRIPTEN_PTHREADS__)
# define PYTHREAD_NAME "pthread-stubs"
# else
# define PYTHREAD_NAME "pthread"