]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31019: Fix multiprocessing.Process.is_alive() (#2875) (#2882)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 26 Jul 2017 15:54:42 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2017 15:54:42 +0000 (17:54 +0200)
commitb65cb8a35641675d44af84c9b18c40c6094f03ef
tree69742727724fb5da51c6a200a564b8313dddc962
parentec9a7127b8196dc5ef27c5ee2772ecea7cbb32df
bpo-31019: Fix multiprocessing.Process.is_alive() (#2875) (#2882)

multiprocessing.Process.is_alive() now removes the process from the
_children set if the process completed.

The change prevents leaking "dangling" processes.
(cherry picked from commit 2db64823c20538a6cfc6033661fab5711d2d4585)
Lib/multiprocessing/process.py