diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-12 12:36:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 12:36:04 (GMT) |
commit | 5d444434ad4e1943a88c9d3aadd300fd0f05dab7 (patch) | |
tree | d287cc76adc529e32987d5d244fe55e0eb8fdded /Misc | |
parent | 2666d702e49aa0e4975553bec2e92ca4a2dba4ea (diff) | |
download | cpython-5d444434ad4e1943a88c9d3aadd300fd0f05dab7.zip cpython-5d444434ad4e1943a88c9d3aadd300fd0f05dab7.tar.gz cpython-5d444434ad4e1943a88c9d3aadd300fd0f05dab7.tar.bz2 |
bpo-26228: Fix pty EOF handling (GH-12049) (GH-27732)
On non-Linux POSIX platforms, like FreeBSD or macOS,
the FD used to read a forked PTY may signal its exit not
by raising an error but by sending empty data to the read
syscall. This case wasn't handled, leading to hanging
`pty.spawn` calls.
Co-authored-by: Reilly Tucker Siemens <reilly@tuckersiemens.com>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
(cherry picked from commit 81ab8db235580317edcb0e559cd4c983f70883f5)
Co-authored-by: Zephyr Shannon <geoffpshannon@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-02-26-09-31-59.bpo-26228.wyrHKc.rst | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1621,6 +1621,7 @@ Yue Shuaijie Jaysinh Shukla Terrel Shumway Eric Siegerman +Reilly Tucker Siemens Paul Sijben SilentGhost Tim Silk diff --git a/Misc/NEWS.d/next/Library/2019-02-26-09-31-59.bpo-26228.wyrHKc.rst b/Misc/NEWS.d/next/Library/2019-02-26-09-31-59.bpo-26228.wyrHKc.rst new file mode 100644 index 0000000..43ff580 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-02-26-09-31-59.bpo-26228.wyrHKc.rst @@ -0,0 +1 @@ +pty.spawn no longer hangs on FreeBSD, OS X, and Solaris.
\ No newline at end of file |