]> granicus.if.org Git - python/commit
[3.6] bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary...
authorAntoine Pitrou <pitrou@free.fr>
Fri, 3 Nov 2017 12:59:43 +0000 (13:59 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2017 12:59:43 +0000 (13:59 +0100)
commit019c99f325287741d1e0eefeef2b75c8e00b884f
tree7bd7d25a44ffe1c6c1ee2d09d8845798cc622bf9
parent5fbe5e161c969bc8a0d44a301152f8bf5afe0fc7
[3.6] bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary (GH-3246) (#4252)

* 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..
(cherry picked from commit fc6b348b12ad401cab0261b7b71a65c60a08c0a8)
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]