Skip to content

Commit

Permalink
Add news and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstum committed Jan 12, 2022
1 parent 643684f commit bb02d15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions newsfragments/2209.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix a bug that could cause `Process.wait` to hang on Linux systems using pidfds, if
another task were to access `Process.returncode` after the process exited but before
``wait`` woke up
2 changes: 2 additions & 0 deletions trio/tests/test_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ async def test_for_leaking_fds():
assert set(SyncPath("/dev/fd").iterdir()) == starting_fds


# regression test for #2209
@pytest.mark.skipif(not posix, reason="Regression test for Linux-only bug")
async def test_subprocess_pidfd_unnotified():
noticed_exit = None

Expand Down

0 comments on commit bb02d15

Please sign in to comment.