]> granicus.if.org Git - python/commit
[3.5] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) (#2167)
authorAntoine Pitrou <pitrou@free.fr>
Tue, 13 Jun 2017 15:54:10 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 15:54:10 +0000 (17:54 +0200)
commita0ecaab006849ade08fbcf8413fe1e92d9c8d71c
treed405de61a61dac3ccc4d75a0fadb0dab39c991a2
parentd071a20f136547a490783fcfa969c6528025a6d2
[3.5] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) (#2167)

* bpo-24484: Avoid race condition in multiprocessing cleanup

The finalizer registry can be mutated while inspected by multiprocessing
at process exit.

* Use test.support.start_threads()

* Add Misc/NEWS.
(cherry picked from commit 1eb6c0074d17f4fd425cacfdda893d65f5f77f0a)
Lib/multiprocessing/util.py
Lib/test/_test_multiprocessing.py
Misc/NEWS