diff options
author | Zephyr Shannon <geoffpshannon@gmail.com> | 2021-08-11 15:21:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 00:21:46 +0200 |
commit | 81ab8db235580317edcb0e559cd4c983f70883f5 (patch) | |
tree | 77894e660eba54cfe86044fa73b04fef02845d84 /Python/ceval.c | |
parent | 64a7812c170f5d46ef16a1517afddc7cd92c5240 (diff) | |
download | cpython-81ab8db235580317edcb0e559cd4c983f70883f5.tar.gz cpython-81ab8db235580317edcb0e559cd4c983f70883f5.zip |
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 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions