You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Unregister semaphores from stdlib tracker immediately after creation
The previous fix attempted to unregister after loky's registration, but this
was too late. The semaphore is registered with stdlib tracker when _SemLock()
is created, so we must unregister immediately after creation in both code paths:
- In the loop when name=None (after line 79-81)
- When name is provided (after line 97)
This prevents 'leaked semaphore' warnings on Python 3.13+ while loky handles
cleanup properly through its own resource tracker.
0 commit comments