Skip to content

[3.13] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287)#154298

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-53597df-3.13
Jul 20, 2026
Merged

[3.13] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287)#154298
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-53597df-3.13

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 20, 2026

Copy link
Copy Markdown
Member

Manual backport of GH-154287 to 3.13.

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.

The __sun__ branch does not exist on 3.13, which is why the automatic backport could not apply.

…processes on DragonFly (pythonGH-154287)

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 53597df)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant