summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorZephyr Shannon <geoffpshannon@gmail.com>2021-08-11 22:21:46 (GMT)
committerGitHub <noreply@github.com>2021-08-11 22:21:46 (GMT)
commit81ab8db235580317edcb0e559cd4c983f70883f5 (patch)
tree77894e660eba54cfe86044fa73b04fef02845d84 /Misc
parent64a7812c170f5d46ef16a1517afddc7cd92c5240 (diff)
downloadcpython-81ab8db235580317edcb0e559cd4c983f70883f5.zip
cpython-81ab8db235580317edcb0e559cd4c983f70883f5.tar.gz
cpython-81ab8db235580317edcb0e559cd4c983f70883f5.tar.bz2
bpo-26228: Fix pty EOF handling (GH-12049)
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>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2019-02-26-09-31-59.bpo-26228.wyrHKc.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index f845c1c..7829fee 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1622,6 +1622,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