1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-07-31 22:03:40 -04:00

Handle PTY EIO error for Rust 1.55+

`ErrorKind::Other` no longer includes `EIO` since Rust 1.55:

    https://blog.rust-lang.org/2021/09/09/Rust-1.55.0.html#stdioerrorkind-variants-updated

It was not precise enough from the very beginning, as the comment says
that only EIO should be hidden, while the code was any uncategorised
errors.
This commit is contained in:
Ilya Bobyr 2021-09-18 18:21:34 -07:00 committed by GitHub
parent fb1b7f6007
commit 58985a4dcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,7 +394,7 @@ where
// This sucks, but checking the process is either racy or
// blocking.
#[cfg(target_os = "linux")]
if err.kind() == ErrorKind::Other {
if err.raw_os_error() == Some(libc::EIO) {
continue;
}