Skip to content

Commit 8dc3b41

Browse files
gpsheadclaude
andcommitted
gh-162016: Shorten the NEWS entry
Lead with the affected API and what a user would notice, and drop the description of how the workaround is implemented. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent d56fd9c commit 8dc3b41

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
Work around a macOS and FreeBSD kernel bug that could make
2-
:meth:`subprocess.Popen.communicate` hang or block past its *timeout*.
3-
When the operating system is under system-wide pipe buffer memory pressure,
4-
:func:`select.poll` and :func:`select.select` can report the child's stdin
5-
pipe as writable when a write to it would block. This was most likely to be
6-
seen on loaded hosts with many pipes in use at once. :meth:`!communicate`
7-
now keeps stdin non-blocking while it writes to it and retries after a short
8-
delay when the pipe turns out to be full.
1+
Fix :meth:`subprocess.Popen.communicate` hanging or blocking past its
2+
*timeout* while writing to the child's stdin on macOS and FreeBSD. This
3+
works around a kernel bug most likely seen on loaded hosts with many pipes
4+
in active use at once.

0 commit comments

Comments
 (0)