On DragonFly BSD, threading.get_native_id() returns lwp_gettid(), which is only unique within a process (the main thread is LWP 1 in every process), so it is not unique across processes as on other platforms.
This makes test_native_id_after_fork and test_process_mainthread_native_id fail with AssertionError: 1 == 1.
Solaris had the same problem (gh-137884), fixed by combining the thread id with the process id. DragonFly can do the same.
Linked PRs
On DragonFly BSD,
threading.get_native_id()returnslwp_gettid(), which is only unique within a process (the main thread is LWP 1 in every process), so it is not unique across processes as on other platforms.This makes
test_native_id_after_forkandtest_process_mainthread_native_idfail withAssertionError: 1 == 1.Solaris had the same problem (gh-137884), fixed by combining the thread id with the process id. DragonFly can do the same.
Linked PRs