]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38982: Fix asyncio PidfdChildWatcher on waitpid() error (GH-17477)
authorVictor Stinner <vstinner@python.org>
Fri, 6 Dec 2019 15:32:41 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Dec 2019 15:32:41 +0000 (16:32 +0100)
commite76ee1a72b9e3f5da287663ea3daec4bb3f67612
treef49a44ca51473f69ec847ba87178a7060b50ed6d
parentb64334cb93d0ddbb551c8cd712942bab2fc72772
bpo-38982: Fix asyncio PidfdChildWatcher on waitpid() error (GH-17477)

If waitpid() is called elsewhere, waitpid() call fails with
ChildProcessError: use return code 255 in this case, and log a
warning. It ensure that the pidfd file descriptor is closed if this
error occurs.
Lib/asyncio/unix_events.py
Misc/NEWS.d/next/Library/2019-12-05-18-21-26.bpo-38982.W3u-03.rst [new file with mode: 0644]