]> granicus.if.org Git - python/commit
bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary ...
authorAntoine Pitrou <pitrou@free.fr>
Fri, 3 Nov 2017 12:34:22 +0000 (13:34 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2017 12:34:22 +0000 (13:34 +0100)
commitfc6b348b12ad401cab0261b7b71a65c60a08c0a8
tree13920c1484d6d65b19a2e07101ce7416bc10db77
parent4f57409a2f7bdf8fb559cddc7c6533ca2c471c67
bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary (#3246)

* bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary.

* Fix test on Windows

* Add NEWS entry

* Adopt a different approach: ignore SIGINT and SIGTERM, as in semaphore tracker.

* Fix comment

* Make sure the test doesn't muck with process state

* Also test previously-started processes

* Update 2017-08-30-17-59-36.bpo-31308.KbexyC.rst

* Avoid masking SIGTERM in forkserver.  It's not necessary and causes a race condition in test_many_processes.
Lib/multiprocessing/forkserver.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2017-08-30-17-59-36.bpo-31308.KbexyC.rst [new file with mode: 0644]