diff options
author | Victor Stinner <vstinner@python.org> | 2019-12-06 15:32:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 15:32:41 (GMT) |
commit | e76ee1a72b9e3f5da287663ea3daec4bb3f67612 (patch) | |
tree | f49a44ca51473f69ec847ba87178a7060b50ed6d /Misc | |
parent | b64334cb93d0ddbb551c8cd712942bab2fc72772 (diff) | |
download | cpython-e76ee1a72b9e3f5da287663ea3daec4bb3f67612.zip cpython-e76ee1a72b9e3f5da287663ea3daec4bb3f67612.tar.gz cpython-e76ee1a72b9e3f5da287663ea3daec4bb3f67612.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-12-05-18-21-26.bpo-38982.W3u-03.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-12-05-18-21-26.bpo-38982.W3u-03.rst b/Misc/NEWS.d/next/Library/2019-12-05-18-21-26.bpo-38982.W3u-03.rst new file mode 100644 index 0000000..b591209 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-12-05-18-21-26.bpo-38982.W3u-03.rst @@ -0,0 +1,5 @@ +Fix asyncio ``PidfdChildWatcher``: handle ``waitpid()`` error. If +``waitpid()`` is called elsewhere, ``waitpid()`` call fails with +:exc:`ChildProcessError`: use return code 255 in this case, and log a +warning. It ensures that the pidfd file descriptor is closed if this error +occurs. |