]> granicus.if.org Git - python/commit
bpo-30886: Fix multiprocessing.Queue.join_thread() (#2642) (#2643)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 10 Jul 2017 11:43:20 +0000 (13:43 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2017 11:43:20 +0000 (13:43 +0200)
commit7f3d65d6e4f8bebaaf996efb1c1adb67eb1724cb
treea5c377c0402f924fc328efbc0128b0cfa852352f
parent7ab334233394070a25344d481c8de1402fa12b29
bpo-30886: Fix multiprocessing.Queue.join_thread() (#2642) (#2643)

multiprocessing.Queue.join_thread() now waits until the thread
completes, even if the thread was started by the same process which
created the queue.

Fix the following warning which occurs randomly when running
test_handle_called_with_mp_queue of test_logging.QueueListenerTest:

Warning -- threading_cleanup() failed to cleanup -1 threads after 4 sec (count: 0, dangling: 1)
(cherry picked from commit 3b69d911c57ef591ac0c0f47a66dbcad8337f33a)
Lib/multiprocessing/queues.py
Misc/NEWS.d/next/Library/2017-07-10-12-14-22.bpo-30886.nqQj34.rst [new file with mode: 0644]