Skip to content

bpo-38982: Fix asyncio PidfdChildWatcher on waitpid() error#17477

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:fix_pidfd_watcher
Dec 6, 2019
Merged

bpo-38982: Fix asyncio PidfdChildWatcher on waitpid() error#17477
vstinner merged 1 commit intopython:masterfrom
vstinner:fix_pidfd_watcher

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Dec 5, 2019

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.

https://bugs.python.org/issue38982

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.
@vstinner vstinner merged commit e76ee1a into python:master Dec 6, 2019
@vstinner vstinner deleted the fix_pidfd_watcher branch December 6, 2019 15:32
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
…-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants