]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-154283: Make threading.get_native_id() unique across processes on DragonFly...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 20:21:13 +0000 (23:21 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 20:21:13 +0000 (20:21 +0000)
commit903265fd16af7b11924c0ec16d546d8b5bf6bba6
tree0489db0f355d708548056a8b8d5bceedc754c135
parent2ae635a30823874649bccd5dfa04f09b095a3876
[3.14] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287) (GH-154297)

On DragonFly BSD lwp_gettid() is only unique within a process (the main
thread is always LWP 1), so combine it with the process id, like Solaris.
(cherry picked from commit 53597df11e2d9f01ade2529c147df24b49685878)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Misc/NEWS.d/next/Library/2026-07-20-21-36-40.gh-issue-154283.Xip7xE.rst [new file with mode: 0644]
Python/thread_pthread.h