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>
M
Miss Islington (bot) committed
5d444434ad4e1943a88c9d3aadd300fd0f05dab7
Parent: 2666d70
Committed by GitHub <noreply@github.com>
on 8/12/2021, 12:36:04 PM