]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145587: fix busy loop in multiprocessing.connection.wait on Windows (GH-145597)
authorShrey Naithani <shrey.naithani@shelllite.tech>
Wed, 11 Mar 2026 12:08:48 +0000 (17:38 +0530)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2026 12:08:48 +0000 (13:08 +0100)
commit5d6e8dd683b25348bfe45f6321f9734868199a23
tree4c04a6f13d8204e2594b832233d156bd042b9356
parentdae85c4d9393b706657a4eb1febc71647a5f544e
gh-145587: fix busy loop in multiprocessing.connection.wait on Windows (GH-145597)

Ensure wait() blocks for the specified timeout when object_list is empty, preventing 100% CPU usage. This aligns the Windows behavior with the Unix implementation.

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Lib/multiprocessing/connection.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2026-03-07-14-34-39.gh-issue-145587.flFQ5-.rst [new file with mode: 0644]