]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-110829: Ensure Thread.join() joins the OS thread (#110848)
authorAntoine Pitrou <antoine@python.org>
Sat, 4 Nov 2023 13:59:24 +0000 (14:59 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Nov 2023 13:59:24 +0000 (13:59 +0000)
commit0e9c364f4ac18a2237bdbac702b96bcf8ef9cb09
tree8febb8282c2c1ebd73a18205ec5b9229a99ac4fe
parenta28a3967ab9a189122f895d51d2551f7b3a273b0
GH-110829: Ensure Thread.join() joins the OS thread (#110848)

Joining a thread now ensures the underlying OS thread has exited. This is required for safer fork() in multi-threaded processes.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
14 files changed:
Include/cpython/pthread_stubs.h
Include/internal/pycore_pythread.h
Lib/test/_test_multiprocessing.py
Lib/test/audit-tests.py
Lib/test/test_audit.py
Lib/test/test_concurrent_futures/test_process_pool.py
Lib/test/test_thread.py
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Core and Builtins/2023-11-04-13-36-51.gh-issue-110829.Pa0CJI.rst [new file with mode: 0644]
Modules/_threadmodule.c
Python/thread_nt.h
Python/thread_pthread.h
Python/thread_pthread_stubs.h